CRichEditCtrl::Cut

void Cut( );

Remarks

Call this function to delete (cut) the current selection (if any) in the rich edit control and copy the deleted text to the Clipboard.

The deletion performed by Cut can be undone by calling the Undo member function.

To delete the current selection without placing the deleted text into the Clipboard, call the Clear member function.

For more information, see WM_CUT in the Win32 documentation.

Example

void snip_CRichEditCtrl_Cut()
{
   // The pointer to my rich edit control.
   extern CRichEditCtrl* pmyRichEditCtrl;

   // Delete all of the text and copy it to the clipboard.
   pmyRichEditCtrl->SetSel(0, -1);
   pmyRichEditCtrl->Cut();
}

CRichEditCtrl OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::Copy, CRichEditCtrl::Undo, CRichEditCtrl::Clear