public static bool GetWindowRect(IntPtr hWnd, out Rectangle lpRect) { WindowsAPI.Rect rect = default(WindowsAPI.Rect); WindowsAPI.GetWindowRect(hWnd, out rect); lpRect = new Rectangle(rect.Left, rect.Top, rect.Right - rect.Left, rect.Down - rect.Top); return(true); }
private static extern bool GetWindowRect(IntPtr hWnd, out WindowsAPI.Rect lpRect);