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

锁定窗口,禁止更新的win32函数

时间:2015-12-15 10:23:46      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

[DllImport("user32.dll", EntryPoint = "LockWindowUpdate", SetLastError = true,

ExactSpelling = true, CharSet = CharSet.Auto,CallingConvention = CallingConvention.StdCall)]

 

private static extern bool LockWindow(IntPtr hWndLock);

 

锁定

  LockWindow(this.Handle);

释放       

  LockWindow(IntPtr.Zero);

锁定窗口,禁止更新的win32函数

标签:

原文地址:http://www.cnblogs.com/xiaochun126/p/5047243.html

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