public WindowControl GetFocus() { using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID())) { return(new WindowControl(User32APIs.GetFocus())); } }
public IntPtr SetFocus() { using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID())) { return(User32APIs.SetFocus(Hwnd)); } }
public bool ReleaseCapture() { using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID())) { return(User32APIs.ReleaseCapture()); } }