用PreTranslateMessage截取,过滤消息。


BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)
{
 // TODO: Add your specialized code here and/or call the base class
 if (pMsg->message == WM_NCLBUTTONDOWN)
 {
  pMsg->message = WM_LBUTTONDOWN;
 }
 return CDialog::PreTranslateMessage(pMsg);
}

posted @ 2010-04-07 21:37  傲衣华少  阅读(317)  评论(0编辑  收藏  举报