Export (0) Print
Expand All
Expand Minimize
2 out of 3 rated this helpful - Rate this topic

CWnd::GetClientRect

Copies the client coordinates of the CWnd client area into the structure pointed to by lpRect.

void GetClientRect(
   LPRECT lpRect 
) const;

Parameters

lpRect
Points to a RECT structure or a CRect object to receive the client coordinates. The left and top members will be 0. The right and bottom members will contain the width and height of the window.

Remarks

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 the CWnd client area, the coordinates of the upper-left corner are (0,0).

Example

See the example for CWnd::IsIconic.

See Also

CWnd Overview | Class Members | Hierarchy Chart | CWnd::GetWindowRect | GetClientRect

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.