void Clear( );
Remarks
Call this function to delete (clear) the current selection (if any) in the edit control.
The deletion performed by Clear can be undone by calling the Undo member function.
To delete the current selection and place the deleted contents into the Clipboard, call the Cut member function.
For more information, see WM_CLEAR in the Win32 documentation.
Example
// The pointer to my edit.
extern CEdit* pmyEdit;
// Delete all of the text.
pmyEdit->SetSel(0, -1);
pmyEdit->Clear();
CEdit Overview | Class Members | Hierarchy Chart
See Also CEdit::Undo, CEdit::Copy, CEdit::Cut, CEdit::Paste