void GetWindowRect(hWnd,lpRect)
This function copies the dimensions of the bounding rectangle of the specified window into the structure pointed to by the lpRect 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.
Parameter | Type/Description |
hWnd | HWND Identifies the window. | |
lpRect | LPRECT Points to a RECT data structure that contains the screen coordinates of the upper-left and lower-right corners of the window. |
None.