方法一:重载WM_NCHITTEST,然后将OnNcHitTest里内容修改为: UINT nHitTest = CDialog::OnNcHitTest(point);if ((nHitTest == HT