Example #1
0
		public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
 private static int getArea(SystemWindow sw)
 {
     RECT rr = sw.Rectangle;
     return rr.Height * rr.Width;
 }
Example #3
0
 public static Rectangle GetControlSize(RECT pRect)
 {
     return new Rectangle(pRect.Top,pRect.Left,pRect.Right-pRect.Left,pRect.Bottom-pRect.Top);
 }
 static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);