Esempio n. 1
0
 static extern IntPtr MonitorFromWindow(IntPtr hWind, NotFoundOptions notFoundOptions);
Esempio n. 2
0
 static extern IntPtr MonitorFromPoint(POINT point, NotFoundOptions notFoundOptions);
Esempio n. 3
0
 static extern IntPtr MonitorFromRect(RECT point, NotFoundOptions notFoundOptions);
Esempio n. 4
0
        public static MonitorInfo GetMonitorFromRect(Rect rect, NotFoundOptions notFoundOptions)
        {
            IntPtr hMonitor = MonitorFromRect(RECT.FromRect(rect), notFoundOptions);

            return(GetMonitorInfo(hMonitor));
        }
Esempio n. 5
0
        public static MonitorInfo GetMonitorFromWindow(Window windows, NotFoundOptions notFoundOptions)
        {
            IntPtr hMonitor = MonitorFromWindow(new WindowInteropHelper(windows).Handle, notFoundOptions);

            return(GetMonitorInfo(hMonitor));
        }
Esempio n. 6
0
 static extern IntPtr MonitorFromWindow(IntPtr hWind, NotFoundOptions notFoundOptions);
Esempio n. 7
0
        public static MonitorInfo GetMonitorFromPoint(Point point, NotFoundOptions notFoundOptions)
        {
            IntPtr hMonitor = MonitorFromPoint(POINT.FromPoint(point), notFoundOptions);

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