Help Center

CRichEdit.SetUndoLimitmethod

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

Windowsmethoddocumented

Syntax

FUNCTION SetUndoLimit (BYVAL hRichEdit AS HWND, BYVAL maxactions AS DWORD) AS DWORD

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
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 of a rich edit control.

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/CRichEdit.inc:1271
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class