我MFC.exe 生成一个对话框 去title bar 在CTestDlg 定义 afx_msg UINT OnNcHitTest(CPoint pt);
UINT CTestDlg::OnNcHitTest(CPoint pt)
{
CRect rc;
GetClientRect(&rc);
ClientToScreen(&rc);
return rc.PtInRect(pt) ? HTCAPTION : CDialog::OnNcHitTest(pt);}
这么做后 发现对话框无法拖动 不知道什么原因 请各位帮我看看