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::LimitText
CEdit                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void LimitText( int nChars = 0 );
 
  Parameter   Description
 
  <nChars>    Specifies the length (in bytes) of the text that the user
              can enter. If this parameter is 0, the text length is set to
              65,535 bytes. This is the default behavior.
 
  Remarks
 
  Limits the length of the text that the user may enter into an edit
  control.
 
  LimitText only limits the text the user can enter. It has no effect on
  any text already in the edit control when the message is sent, nor does
  it affect the length of the text copied to the edit control by the
  SetWindowText member function in CWnd.
 
  See Also
 
  CWnd::SetWindowText, EM_LIMITTEXT
 
 
                                     -♦-