WinForm 控件不闪烁
1: [DllImport("user32")]2: public static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, IntPtr lParam);3: public const int WM_SETREDRAW = 0xB;4: [DllImport("user32.dll")]5: public static extern bool ReleaseCapture();6:7: //使用方法8: ReleaseCapture();9: SendMessage(this.Handle, 161, 2, IntPtr.Zero);
[转载请保留作者信息 作者:冯天文 ]

浙公网安备 33010602011771号