MFC点击控件拖动窗口
void CMouseClickDlg::OnLButtonDown(UINT nFlags, CPoint point) { CDialogEx::OnLButtonDown(nFlags, point); CRect rt; m_Title.GetWindowRect(&rt); ScreenToClient(&rt); if ((point.x >= rt.left && point.x <= rt.right) && (point.y >= rt.top && point.y <= rt.bottom)) { PostMessage(WM_NCLBUTTONDOWN,HTCAPTION,MAKELPARAM(point.x, point.y)); } }