다음을 통해 공유


CRichEditCtrl::Undo

Undoes the last operation in the rich edit control.

BOOL Undo( );

Return Value

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

Remarks

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.

Example

See the example for CanUndo.

Requirements

Header: afxcmn.h

See Also

Reference

CRichEditCtrl Class

Hierarchy Chart

CRichEditCtrl::CanUndo

CRichEditCtrl::EmptyUndoBuffer

Other Resources

CRichEditCtrl Members