Beispiel #1
0
 private bool IsKeyToggled(Keys key)
 {
     return(((int)NativeMethods.GetKeyState((int)key) & 1) == 1);
 }
Beispiel #2
0
 private bool IsKeyDown(Keys key)
 {
     return(((uint)NativeMethods.GetKeyState((int)key) & 32768U) > 0U);
 }
Beispiel #3
0
 private void DisableMouseClickThru()
 {
     NativeMethods.SetWindowLong(this.Handle, -20, (int)NativeMethods.GetWindowLong(this.Handle, -20) & -33);
 }
Beispiel #4
0
 private void EnsureTopMost()
 {
     NativeMethods.SetWindowPos(this.Handle, NativeMethods.HWND_TOPMOST, 0, 0, 0, 0, 19U);
 }
Beispiel #5
0
 private void EnableMouseClickThru()
 {
     NativeMethods.SetWindowLong(this.Handle, -20, NativeMethods.GetWindowLong(this.Handle, -20) | 32);
 }