Пример #1
0
        public static Rectangle GetRectangle(IntPtr hWnd)
        {
            ManagedRectangle managedRectangle = new ManagedRectangle();

            GetWindowRect(hWnd, out managedRectangle);
            return(managedRectangle.Rectangle);
        }
Пример #2
0
 private static extern bool GetWindowRect(IntPtr hwnd, out ManagedRectangle managedRectangle);
Пример #3
0
 private static extern bool GetWindowRect(IntPtr hwnd, out ManagedRectangle managedRectangle);
Пример #4
0
 public static Rectangle GetRectangle(IntPtr hWnd)
 {
     ManagedRectangle managedRectangle = new ManagedRectangle();
     GetWindowRect(hWnd, out managedRectangle);
     return managedRectangle.Rectangle;
 }
Пример #5
0
 public static Rectangle GetWindowRect(IntPtr hWnd)
 {
     return(ManagedRectangle.GetRectangle(hWnd));
 }