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; }
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);