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


CRichEditCtrl::Undo

Undoes the last operation in the rich edit control.

BOOL Undo( );

Возвращаемое значение

Nonzero if the undo operation is successful; otherwise, 0.

Заметки

An undo operation can also be undone. For example, you can restore deleted text with the first call to Undo. As long as there is no intervening edit operation, you can remove the text again with a second call to Undo.

For more information, see EM_UNDO in the Windows SDK.

Пример

See the example for CanUndo.

Требования

Header: afxcmn.h

См. также

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

CRichEditCtrl Class

CRichEditCtrl Members

Hierarchy Chart

CRichEditCtrl::CanUndo

CRichEditCtrl::EmptyUndoBuffer