static extern IntPtr MonitorFromWindow(IntPtr hWind, NotFoundOptions notFoundOptions);
static extern IntPtr MonitorFromPoint(POINT point, NotFoundOptions notFoundOptions);
static extern IntPtr MonitorFromRect(RECT point, NotFoundOptions notFoundOptions);
public static MonitorInfo GetMonitorFromRect(Rect rect, NotFoundOptions notFoundOptions) { IntPtr hMonitor = MonitorFromRect(RECT.FromRect(rect), notFoundOptions); return(GetMonitorInfo(hMonitor)); }
public static MonitorInfo GetMonitorFromWindow(Window windows, NotFoundOptions notFoundOptions) { IntPtr hMonitor = MonitorFromWindow(new WindowInteropHelper(windows).Handle, notFoundOptions); return(GetMonitorInfo(hMonitor)); }
public static MonitorInfo GetMonitorFromPoint(Point point, NotFoundOptions notFoundOptions) { IntPtr hMonitor = MonitorFromPoint(POINT.FromPoint(point), notFoundOptions); return(GetMonitorInfo(hMonitor)); }
public static MonitorInfo GetMonitorFromWindow(Window windows, NotFoundOptions notFoundOptions) { IntPtr hMonitor = MonitorFromWindow(new WindowInteropHelper(windows).Handle, notFoundOptions); return GetMonitorInfo(hMonitor); }
public static MonitorInfo GetMonitorFromRect(Rect rect, NotFoundOptions notFoundOptions) { IntPtr hMonitor = MonitorFromRect(RECT.FromRect(rect), notFoundOptions); return GetMonitorInfo(hMonitor); }
public static MonitorInfo GetMonitorFromPoint(Point point, NotFoundOptions notFoundOptions) { IntPtr hMonitor = MonitorFromPoint(POINT.FromPoint(point), notFoundOptions); return GetMonitorInfo(hMonitor); }