Skip to content

Latest commit

 

History

History
98 lines (60 loc) · 2.19 KB

wm-clear.md

File metadata and controls

98 lines (60 loc) · 2.19 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
WM_CLEAR message (Winuser.h)
An application sends a WM\_CLEAR message to an edit control or combo box to delete (clear) the current selection, if any, from the edit control.
6730a725-01ec-4821-9ffc-1ea267d665b3
WM_CLEAR message Data Exchange
apiref
WM_CLEAR
Winuser.h
HeaderDef
reference
05/31/2018

WM_CLEAR message

An application sends a WM_CLEAR message to an edit control or combo box to delete (clear) the current selection, if any, from the edit control.

#define WM_CLEAR                        0x0303

Parameters

wParam

This parameter is not used and must be zero.

lParam

This parameter is not used and must be zero.

Return value

This message does not return a value.

Remarks

The deletion performed by the WM_CLEAR message can be undone by sending the edit control an EM_UNDO message.

To delete the current selection and place the deleted content on the clipboard, use the WM_CUT message.

When sent to a combo box, the WM_CLEAR message is handled by its edit control. This message has no effect when sent to a combo box with the CBS_DROPDOWNLIST style.

Requirements

Requirement Value
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

WM_COPY

WM_CUT

WM_PASTE

WM_UNDO

Conceptual

Clipboard