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::ReplaceSel
CEdit                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void ReplaceSel( const char FAR* lpNewText );
 
  Parameter   Description
 
  <lpNewText> Points to a null-terminated string containing the
              replacement text.
 
  Remarks
 
  Replaces the current selection in an edit control with the text
  specified by <lpNewText>.
 
  Replaces only a portion of the text in an edit control. If you want to
  replace all of the text, use the CWnd::SetWindowText member function.
 
  If there is no current selection, the replacement text is inserted at
  the current cursor location.
 
  See Also
 
  CWnd::SetWindowText, EM_REPLACESEL
 
 
                                     -♦-