Exemplo n.º 1
0
 public WindowControl GetFocus()
 {
     using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID()))
     {
         return(new WindowControl(User32APIs.GetFocus()));
     }
 }
Exemplo n.º 2
0
 public IntPtr SetFocus()
 {
     using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID()))
     {
         return(User32APIs.SetFocus(Hwnd));
     }
 }
Exemplo n.º 3
0
 public bool ReleaseCapture()
 {
     using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID()))
     {
         return(User32APIs.ReleaseCapture());
     }
 }