Example #1
0
 public static bool GetWindowRect(IntPtr hWnd, out Rectangle lpRect)
 {
     WindowsAPI.Rect rect = default(WindowsAPI.Rect);
     WindowsAPI.GetWindowRect(hWnd, out rect);
     lpRect = new Rectangle(rect.Left, rect.Top, rect.Right - rect.Left, rect.Down - rect.Top);
     return(true);
 }
Example #2
0
 private static extern bool GetWindowRect(IntPtr hWnd, out WindowsAPI.Rect lpRect);