标签:
有的时候,我们需要自绘窗口的标题,或者隐藏了窗口标题,那么问题来了,这就是怎么拖动无标题的窗口?UINT CYourClass::OnNcHitTest(CPoint point) { UINT nh=CDialog::OnNcHitTest(point); return ((nh==HTCLIENT)?HTCAPTION:nh); }
void CYourClass::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default SendMessage(WM_SYSCOMMAND,0xF012,0); CDialog::OnLButtonDown(nFlags, point); }
标签:
原文地址:http://blog.csdn.net/jiangqin115/article/details/45057417