Ejemplo n.º 1
0
 internal static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
Ejemplo n.º 2
0
 /// <summary>
 /// Get a windows rectangle in a .NET structure
 /// </summary>
 /// <param name="hwnd">The window handle to look up</param>
 /// <returns>The rectangle</returns>
 internal static Rectangle GetWindowRect(IntPtr hwnd)
 {
     RECT rect = new RECT();
     GetWindowRect(hwnd, out rect);
     return rect.AsRectangle;
 }
Ejemplo n.º 3
0
 internal static extern bool GetClientRect(IntPtr hWnd, out RECT lpRect);