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::FmtLines
◄CEdit►                                       ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL FmtLines( BOOL bAddEOL );
 
  Parameter   Description
 
  <bAddEOL>   Specifies whether soft line-break characters are to be
              inserted. A value of TRUE inserts the characters; a value of
              FALSE removes them.
 
  Remarks
 
  Sets the inclusion of soft line-break characters on or off within a
  multiple-line edit control. A soft line break consists of two carriage
  returns and a linefeed inserted at the end of a line that is broken
  because of word wrapping. A hard line break consists of one carriage
  return and a linefeed. Lines that end with a hard line break are not
  affected by FmtLines.
 
  Windows will only respond if the CEdit object is a multiple-line edit
  control.
 
  FmtLines only affects the buffer returned by ◄GetHandle► and the text
  returned by ◄WM_GETTEXT►. It has no impact on the display of the text
  within the edit control.
 
  Return Value
 
  TRUE if any formatting occurs; otherwise FALSE.
 
  See Also
 
  ◄CEdit::GetHandle►, ◄CWnd::GetWindowText►, ◄EM_FMTLINES►
 
 
                                     -♦-