摘要: 窗体移动private const int WM_NCHITTEST = 0x84; private const int HTCLIENT = 0x1; private const int HTCAPTION = 0x2; protected override void WndProc(ref Message m) { switch (m.Msg) { case WM_NCHITTEST: base.WndProc(ref m); if ((int)m.Result == HTCLIENT) m.Result = (IntPtr)HTCAPTION; return; } base.WndPro 阅读全文
posted @ 2013-03-07 12:39 Gremorse 阅读(282) 评论(0) 推荐(0) 编辑