void GetClientRect(hwnd, lprc) | |||||
HWND hwnd; | /* handle of window, */ | ||||
RECT FAR* lprc; | /* address of structure for rectangle | */ |
The GetClientRect function retrieves the client coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).
hwnd
Identifies the window whose client coordinates are to be retrieved.
lprc
Points to a RECT structure that receives the client coordinates. The left and top members will be zero. The right and bottom members will contain the width and height of the window. The RECT structure has the following form:
typedef struct tagRECT { /* rc */
int left;
int top;
int right;
int bottom;
} RECT;
For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.
This function does not return a value.