This documentation is archived and is not being maintained.


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.