EM_SETUNDOLIMIT message

Sets the maximum number of actions that can stored in the undo queue of a rich edit control.

Parameters

wParam

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

lParam

This parameter is not used; it must be zero.

Return value

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

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.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Richedit.h

See also

Reference

EM_CANREDO

EM_GETREDONAME

EM_GETUNDONAME

EM_REDO

EM_UNDO