_GetWindowRect() 개인적인 메소드

private _GetWindowRect ( IntPtr hWnd, RECT &lpRect ) : bool
hWnd IntPtr
lpRect RECT
리턴 bool
예제 #1
0
        public static RECT GetWindowRect(IntPtr hwnd)
        {
            RECT result;

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