This function retrieves the coordinates of a window’s client area.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 1.0 and later |
Syntax
BOOL GetClientRect( HWND hWnd, LPRECT lpRect);
Parameters
hWnd
Handle to the window whose client coordinates are to be retrieved.
lpRect
Long pointer to a RECT structure that receives the client coordinates. The left and top members are zero. The right and bottom members contain the width and height of the window.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
Command bars are included in the client area.
See Also