Beispiel #1
0
        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);
        }
Beispiel #2
0
        public static POINT ClientToScreen(Hwnd hWnd, POINT point)
        {
            var result = point;

            if (NativeMethods.ClientToScreen(hWnd, ref result) == false)
            {
                NativeGuard.ThrowLastError();
            }

            return(result);
        }
Beispiel #3
0
        public static RECT GetClientRect(IntPtr hwnd)
        {
            RECT rc;

            if (NativeMethods.GetClientRect(hwnd, out rc) == false)
            {
                NativeGuard.ThrowLastError();
            }

            return(rc);
        }