Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
voidReplaceSel(LPCTSTRlpszNewText, BOOLbCanUndo**= FALSE);**
Parameters
lpszNewText
Points to a null-terminated string containing the replacement text.
bCanUndo
To specify that this function can be undone, set the value of this parameter to TRUE . The default value is FALSE.
Remarks
Call this function to replace the current selection in an edit control with the text specified by lpszNewText.
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.
For more information, see in the Win32 documentation.
Example
See the example for CEdit::LineIndex.
CEdit Overview | Class Members | Hierarchy Chart
See Also CWnd::SetWindowText