UINT CMyDialog::OnNcHitTest(CPoint point) { UINT res=CDialog::OnNcHitTest(point); if(res==HTCLOSE)return HTCAPTION; return res; // return CDialog::OnNcHitTest(point);}