Поделиться через


CEdit::Cut

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

void Cut( );

Заметки

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 Windows SDK.

Пример

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

Требования

Header: afxwin.h

См. также

Основные понятия

CEdit Class

CEdit Members

Hierarchy Chart

CEdit::Undo

CEdit::Clear

CEdit::Copy

CEdit::Paste