GetClientRect

Syntax

void GetClientRect(hWnd,lpRect)

This function copies the client coordinates of a window's client area into the data structure pointed to by the lpRect 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 (0,0).

Parameter Type/Description  

hWnd HWND Identifies the window associated with the client area.  
lpRect LPRECT Points to a RECT data structure.  

Return Value

None.