BOOL GetClientRect(hwnd, lprc) | |||||
HWND hwnd; | /* handle of window | */ | |||
LPRECT lprc; | /* address of structure for rectangle | */ |
This function copies the client coordinates of a window's client area into the structure pointed to by the lprc parameter. The client coordinates specify the upper-left and lower-right corners of the client area. Since client coordinates are relative to the upper-left corners of a window's client area, the coordinates of the upper-left corner are always (0,0).
hwnd
Identifies the window associated with the client area.
lprc
Points to a RECT structure.
This function returns TRUE for success, FALSE for failure.
GetWindowRect