Help Center

CComboEx.ResetContentmethod

Removes all items from the list box and edit control of a combo box.

WindowsmethodCCombo.incdoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION ResetContent (BYVAL hCombo AS HWND)

Return value

This message always returns CB_OKAY.

Description

Removes all items from the list box and edit control of a combo box.

Remarks

If you create the combo box with an owner-drawn style but without the CBS_HASSTRINGS style, the owner of the combo box receives a WM_DELETEITEM message for each item in the combo box.

Example

CCombo.ResetContent(hCombo)

Reference

  • Include file CCombo.inc
  • Documented in Windows/WIndows Controls/CCombo Class.md
  • Topic: CCombo Class