1. 捕获WM_NCHITTEST:
UINT CMyDialog::OnNcHitTest(CPoint point)
{
UINT nResult = CDialog::OnNcHitTest(point);
return nResult == HTCLIENT ? HTCAPTION : nResult;
}
2. 捕获WM_LBUTTONDOWN:
void CMyDialog::OnLButtonDown(CPoint point)
{
SendMessage(WM_SYSCOMMAND, 0xF012, 0);
CDialog::OnLButtonDown(point);
}
posted on 2007-09-10 12:06
披星戴月 阅读(318)
评论(0) 编辑 收藏 引用 所属分类:
Win32