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


Call this function to get the formatting rectangle of an edit control.

void GetRect( 
   LPRECT lpRect  
) const;

Points to the RECT structure that receives the formatting rectangle.

The formatting rectangle is the limiting rectangle of the text, which is independent of the size of the edit-control window.

The formatting rectangle of a multiple-line edit control can be modified by the SetRect and SetRectNP member functions.

For more information, see EM_GETRECT in the Windows SDK.

See the example for CEdit::LimitText.

Header: afxwin.h

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

Community Additions

© 2014 Microsoft. All rights reserved.