Compartilhar via


CRichEditCtrl::SetUndoLimit

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

UINT SetUndoLimit(
   UINT nLimit 
);

Parameters

  • nLimit
    Specifies the maximum number of actions that can be stored in the undo queue. Set to zero to disable Undo.

Return Value

The new maximum number of undo actions for the 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.

Requirements

Header: afxcmn.h

See Also

Reference

CRichEditCtrl Class

Hierarchy Chart

CRichEditCtrl::EmptyUndoBuffer

CRichEditCtrl::Undo

Other Resources

CRichEditCtrl Members