CRichEditCtrl::Undo

BOOL Undo( );

Return Value

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

Remarks

Call this function to undo the last operation in the rich edit control.

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 Win32 documentation.

Example

See the example for CanUndo.

CRichEditCtrl OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::CanUndo, CRichEditCtrl::EmptyUndoBuffer