Beispiel #1
0
 public static void SetWindowBounds(IntPtr handle, WindowRect rect)
 {
     if (!MoveWindow(handle, rect.X1, rect.Y1, rect.X2 - rect.X1, rect.Y2 - rect.Y1, true))
         throw new InvalidOperationException();
 }
Beispiel #2
0
 static extern bool GetWindowRect(IntPtr hWnd, out WindowRect lpRect);