_GetClientRect() private method

private _GetClientRect ( IntPtr hwnd, [ lpRect ) : bool
hwnd System.IntPtr
lpRect [
return bool
Ejemplo n.º 1
0
        public static RECT GetClientRect(IntPtr hwnd)
        {
            RECT result;

            if (!NativeMethods._GetClientRect(hwnd, out result))
            {
                HRESULT.ThrowLastError();
            }
            return(result);
        }