HeaderPane
Main
Hide
Share Link
Print

Clear

Deletes the selected text in the edit control portion, or removes the selection of a dropdown list combo box.

C

void SftBox_Clear(HWND hwndCtl);

C++

void CSftBox::Clear();

Parameters

hwndCtl

The window handle of the combo box control.

Returns

None.

Comments

In a simple or dropdown combo box, the Clear function deletes the text selected in the edit control portion. The change is handled like text deleted by the user: SFTBOXN_EDITCHANGE is sent and, depending on the search mode (see SetEditSearchMode), the selected item may change.

In a dropdown list combo box, the Clear function removes the current selection, so no item is selected and the static portion no longer shows an item. This is equivalent to calling SetCurSel with an item index of -1.

To remove the selection of a simple or dropdown combo box, use SetCurSel with an item index of -1.

In C, SftBox_Clear is implemented as a macro which sends a WM_CLEAR message to the combo box.

See Also C/C++ API | Categories | Notifications


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.