if you want to change the title - this is the line displayed when closing combobox, you can do the following:
m_ComboBox.DeleteString (0); // first delete the previous one, if any, 0 = visual line m_ComboBox.AddString (_T ("Hello there"));
put it in fx. in OnCloseupCombo - when the event closes, dropdownbox fires
ON_CBN_CLOSEUP(IDC_COMBO1, OnCloseupCombo)
This change is a new line that does not have a selection of already assigned list items.
source
share