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

[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函数)