Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


Copies the dimensions of the bounding rectangle of the CWnd object to the structure pointed to by lpRect.

void GetWindowRect(
   LPRECT lpRect 
) const;

Points to a CRect object or a RECT structure that will receive the screen coordinates of the upper-left and lower-right corners.

The dimensions are given in screen coordinates relative to the upper-left corner of the display screen. The dimensions of the caption, border, and scroll bars, if present, are included.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.