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

See the example for CanUndo.

Community Additions

ADD
Show: