示例#1
0
 internal static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
示例#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;
 }
示例#3
0
 internal static extern bool GetClientRect(IntPtr hWnd, out RECT lpRect);