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