This documentation is archived and is not being maintained.

CRichEditCtrl::GetUndoName 

Retrieves the type of the next available action in the undo queue, if any.


UNDONAMEID GetUndoName( ) const;

If an undo action is in the control's undo queue, GetUndoName returns the UNDONAMEID enumeration type indicating the type of the next action in the queue. If the undo queue is empty, or if the undo action in the queue is of an unknown type, GetUndoName returns 0.

The types of actions that can be undone or redone include typing, delete, drag-drop, cut, and paste operations. This information can be useful for applications that provide an extended user interface for Undo and Redo operations, such as a drop-down list box of actions that can be undone.

Show: