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));
        }
Exemple #6
0
 static extern IntPtr MonitorFromWindow(IntPtr hWind, NotFoundOptions notFoundOptions);
        public static MonitorInfo GetMonitorFromPoint(Point point, NotFoundOptions notFoundOptions)
        {
            IntPtr hMonitor = MonitorFromPoint(POINT.FromPoint(point), notFoundOptions);

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