Example #1
0
 public static void getWindowRect( IntPtr hwnd, out int x, out int y, out int width, out int height )
 {
     RECT rect = new RECT();
     GetWindowRect(hwnd, out rect);
     x = rect.X;
     y = rect.Y;
     width = rect.Width;
     height = rect.Height;
 }
Example #2
0
 static extern bool GetWindowRect(IntPtr hwnd, out RECT lpRect);
Example #3
0
 public bool Equals( RECT r )
 {
     return r.left == left && r.top == top && r.right == right && r.bottom == bottom;
 }