添加了这两个消息响应函数后,只能响应OnNcHitTest,为啥呢
void CMyAppDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
/*SendMessage(WM_SYSCOMMAND, SC_MOVE|0x0002);
return;*/
AfxMessageBox(_T("AAA"));
CDialog::OnLButtonDown(nFlags, point);
}
LRESULT CMyAppDlg::OnNcHitTest(CPoint point)
{
UINT nHit = CDialog::OnNcHitTest(point);
return (nHit == HTCLIENT ? HTCAPTION : nHit);
}