Share via


CRichEditCtrl::GetUndoName

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

UNDONAMEID GetUndoName( ) const;

Return Value

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.

Remarks

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.

Requirements

Header: afxcmn.h

See Also

Reference

CRichEditCtrl Class

Hierarchy Chart

CRichEditCtrl::Undo

CRichEditCtrl::Redo

CRichEditCtrl::GetRedoName

Other Resources

CRichEditCtrl Members