C# Winform 让整个窗口都可以拖动
摘要:
调用Windows API:[DllImport("user32.dll")]public static extern bool ReleaseCapture();[DllImport("user32.dll")]public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);private void frmMain_MouseDown(object sender, MouseEventArgs e){ ReleaseCapture(); SendM 阅读全文
posted @ 2012-08-20 18:44 JRoger 阅读(2070) 评论(0) 推荐(0) 编辑