从vc6转移到vs2005 发生下面问题:
BEGIN_MESSAGE_MAP(CTestDlg, CCaptionBtnDlg)
ON_WM_NCHITTEST() //vs2005 检测错误在这里
END_MESSAGE_MAP()
afx_msg UINT OnNcHitTest(CPoint point);
UINT CTestDlg::OnNcHitTest(CPoint point)
{
....
}
解决方法:
afx_msg UINT OnNcHitTest(CPoint point);
UINT CTestDlg::OnNcHitTest(CPoint point)
=>
afx_msg LRESULT OnNcHitTest(CPoint point);
LRESULT CTestDlg::OnNcHitTest(CPoint point)