Exemplo n.º 1
0
 public static Rect GetWindowRect(IntPtr hwnd)
 {
     RECT rect = new RECT();
     GetWindowRect(hwnd, out rect);
     return new Rect(rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top);
 }
Exemplo n.º 2
0
 static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);