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::SetRectNP
CEdit                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void SetRectNP( LPRECT lpRect );
 
  Parameter   Description
 
  <lpRect>    Points to a RECT or CRect that specifies the new dimensions
              of the rectangle.
 
  Remarks
 
  Sets 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 calling the SetRectNP 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.
 
  SetRectNP is identical to the SetRect member function except that the
  edit-control window is not redrawn.
 
  This member is only processed by multiple-line edit controls.
 
  See Also
 
  CRect::CRect, CRect::CopyRect, CRect::operator =,
  CRect::SetRectEmpty, CEdit::GetRect, CEdit::SetRect, EM_SETRECT
 
 
                                     -♦-