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