Esempio n. 1
0
        public static Rectangle GetRectangle(IntPtr hWnd)
        {
            ManagedRectangle managedRectangle = new ManagedRectangle();

            GetWindowRect(hWnd, out managedRectangle);
            return(managedRectangle.Rectangle);
        }
Esempio n. 2
0
 private static extern bool GetWindowRect(IntPtr hwnd, out ManagedRectangle managedRectangle);
Esempio n. 3
0
 private static extern bool GetWindowRect(IntPtr hwnd, out ManagedRectangle managedRectangle);
Esempio n. 4
0
 public static Rectangle GetRectangle(IntPtr hWnd)
 {
     ManagedRectangle managedRectangle = new ManagedRectangle();
     GetWindowRect(hWnd, out managedRectangle);
     return managedRectangle.Rectangle;
 }
Esempio n. 5
0
 public static Rectangle GetWindowRect(IntPtr hWnd)
 {
     return(ManagedRectangle.GetRectangle(hWnd));
 }