Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

EM_EMPTYUNDOBUFFER message

Resets the undo flag of an edit control. The undo flag is set whenever an operation within the edit control can be undone. You can send this message to either an edit control or a rich edit control.

Parameters

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

This message does not return a value.

Remarks

The undo flag is automatically reset whenever the edit control receives a WM_SETTEXT or EM_SETHANDLE message.

Edit controls and Rich Edit 1.0: The control can only undo or redo the most recent operation.

Rich Edit 2.0 and later: The EM_EMPTYUNDOBUFFER message empties all undo and redo buffers. Rich edit controls enable the user to undo or redo multiple operations.

Rich Edit: Supported in Microsoft Rich Edit 1.0 and later. For information about the compatibility of rich edit versions with the various system versions, see About Rich Edit Controls.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
EM_CANUNDO
EM_SETHANDLE
EM_UNDO
Other Resources
WM_SETTEXT

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.