Posted on 2012-12-25 17:21
盛勝 閱讀(286)
評論(0) 編輯 收藏 引用
在對話框中添加WM_NCHITTEST的消息響應,函數:OnNcHitTest
LRESULT ×××××××::OnNcHitTest(CPoint point)
{
// TODO: 在此添加消息處理程序代碼和/或調用默認值
{
CRect rc;
GetClientRect(&rc);
ClientToScreen(&rc);
return rc.PtInRect(point) ? HTCAPTION : CDialog::OnNcHitTest(point);
}
return true;
//return CDialog::OnNcHitTest(point);
}