WM_UNDO message

An application sends a WM_UNDO message to an edit control to undo the last operation. When this message is sent to an edit control, the previously deleted text is restored or the previously added text is deleted.

Parameters

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

If the message succeeds, the return value is TRUE.

If the message fails, the return value is FALSE.

Remarks

Rich Edit: It is recommended that EM_UNDO be used instead of WM_UNDO.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Other Resources

WM_CLEAR

WM_COPY

WM_CUT

WM_PASTE