public static Point ScreenToClient(IntPtr windowHandle, Point point) { var pt = POINT.FromPoint(point); if (NativeMethods.ScreenToClient(windowHandle, ref pt)) { return(pt.ToPoint()); } return(Point.Empty); }
public static IntPtr FindWindow(Point point) { return(NativeMethods.WindowFromPoint(POINT.FromPoint(point))); }
public static IntPtr FindChildWindow(IntPtr parentWindowHandle, Point point) { return(NativeMethods.ChildWindowFromPoint(parentWindowHandle, POINT.FromPoint(point))); }