Share via


WM_CLEAR (Windows Embedded CE 6.0)

1/6/2010

This message is sent by an application to an edit control or combo box to delete, or clear, the current selection, if any, from the edit control.

Syntax

WM_CLEAR wParam = 0; 
    lParam = 0; 

Parameters

  • wParam
    Not used.
  • lParam
    Not used.

Return Value

None.

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

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Clipboards Messages
EM_UNDO
WM_COPY
WM_CUT
WM_PASTE