public static RECT AdjustWindowRectEx(RECT lpRect, WS dwStyle, bool bMenu, WS_EX dwExStyle) { if (_AdjustWindowRectEx(ref lpRect, dwStyle, bMenu, dwExStyle) == false) { NativeGuard.ThrowLastError(); } return(lpRect); }
public static POINT ClientToScreen(Hwnd hWnd, POINT point) { var result = point; if (NativeMethods.ClientToScreen(hWnd, ref result) == false) { NativeGuard.ThrowLastError(); } return(result); }
public static RECT GetClientRect(IntPtr hwnd) { RECT rc; if (NativeMethods.GetClientRect(hwnd, out rc) == false) { NativeGuard.ThrowLastError(); } return(rc); }