Help Center

CRichEditCtx.UndoNamemethod

Retrieves the type of the next undo action, if any.

Windowsmethoddocumented

Syntax

FUNCTION UndoName () AS DWORD

Parameters

NameDescription
UID_UNKNOWN0
UID_TYPING1
UID_DELETE2
UID_DRAGDROP3
UID_CUT4
UID_PASTE5
UID_AUTOTABLE6

Return value

If there is an undo action, the value returned is an UNDONAMEID enumeration value that indicates the type of the next action in the control's undo queue.

If there are no actions that can be undone or the type of the next undo action is unknown, the return value is zero.

Description

Retrieves the type of the next undo action, if any.

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.

Reference

  • Defined in AfxNova/CRichEditCtx.inc:1912
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class