Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CEdit::SetRect
CEdit                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void SetRect( LPRECT lpRect );
 
  Parameter   Description
 
  <lpRect>    Points to the RECT or CRect that specifies the new
              dimensions of the formatting rectangle.
 
  Remarks
 
  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.
 
  See Also
 
  CRect::CRect, CRect::CopyRect, CRect::operator =,
  CRect::SetRectEmpty, CEdit::GetRect, CEdit::SetRectNP,
  EM_SETRECT
 
 
                                     -♦-