BOOL GetWindowRect(hwnd, lprc) | |||||
HWND hwnd; | /* handle of window | */ | |||
LPRECT lprc; | /* address of structure for window coordinates | */ |
This function copies the dimensions of the bounding rectangle of the specified window into the structure pointed to by the lprc parameter. The dimensions are given in screen coordinates, relative to the upper-left corner of the display screen, and include the caption, border, and scroll bars, if present.
hwnd
Identifies the window.
lprc
Points to a RECT structure that contains the screen coordinates of the upper-left and lower-right corners of the window.
Returns TRUE for success, FALSE for failure.
GetClientRect