码迷,mamicode.com
首页 > Windows程序 > 详细

WinForm 控件不闪烁

时间:2016-01-11 22:12:05      阅读:350      评论:0      收藏:0      [点我收藏+]

标签:

  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);

WinForm 控件不闪烁

标签:

原文地址:http://www.cnblogs.com/twzy/p/5122568.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!