Help Center

CRichEditCtx.SetUndoLimitmethod

Sets the maximum number of actions that can stored in the undo queue.

Windowsmethoddocumented

Syntax

FUNCTION SetUndoLimit (BYVAL maxactions AS DWORD) AS DWORD

Parameters

NameDescription
maxactionsSpecifies the maximum number of actions that can be stored in the undo queue.

Return value

The return value is the new maximum number of undo actions for the rich edit control. This value may be less than maxactions if memory is limited.

Description

Sets the maximum number of actions that can stored in the undo queue.

Remarks

By default, the maximum number of actions in the undo queue is 100. If you increase this number, there must be enough available memory to accommodate the new number. For better performance, set the limit to the smallest possible value.

Setting the limit to zero disables the Undo feature.

Reference

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