EM_EMPTYUNDOBUFFER

3.0

EM_EMPTYUNDOBUFFER
wParam = 0;     /* not used, must be zero */
lParam = 0L;    /* not used, must be zero */

An application sends an EM_EMPTYUNDOBUFFER message to reset (clear) the undo flag of an edit control. The undo flag is set whenever an operation within the edit control can be undone.

Parameters

This message has no parameters.

Return Value

This message does not return a value.

Comments

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

Example

This example resets the undo flag of an edit control:

SendDlgItemMessage(hdlg, ID_MYEDITCONTROL, EM_EMPTYUNDOBUFFER, 0, 0L);

See Also

EM_CANUNDO, EM_SETHANDLE, EM_UNDO, WM_SETTEXT