void SetRect( LPRECT lpRect );
lpRect
Points to the RECT or CRect that specifies the new dimensions of the formatting rectangle.
Sets the dimensions of a rectangle using the specified coordinates. This call is only processed by a multiline edit control.
Use SetRect to set the formatting rectangle of a multiple-line edit control. The formatting rectangle is the limiting rectangle of the text, which is independent of the size of the edit-control window. When the edit control is first created, the formatting rectangle is the same as the client area of the edit-control window. By using the SetRect member function, an application can make the formatting rectangle larger or smaller then the edit-control window.
If the edit control has no scroll bar, text will be clipped, not wrapped, if the formatting rectangle is made larger than the window.
When SetRect is called, the edit control's text is also reformatted and redisplayed.
CRect::CRect, CRect::CopyRect, CRect::operator =, CRect::SetRectEmpty, CEdit::GetRect, CEdit::SetRectNP, EM_SETRECT