Пример #1
0
 public WindowControl GetFocus()
 {
     using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID()))
     {
         return(new WindowControl(User32APIs.GetFocus()));
     }
 }
Пример #2
0
 public IntPtr SetFocus()
 {
     using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID()))
     {
         return(User32APIs.SetFocus(Hwnd));
     }
 }
Пример #3
0
 public bool ReleaseCapture()
 {
     using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID()))
     {
         return(User32APIs.ReleaseCapture());
     }
 }