Provide a handler for the CBN_EDITCHANGE event, your handler will be called every time the user changes the text in the edit field.
In this handler, call the CComboBox::FindString() method to see if the entered text exists in any of your combobox entries. If so, call CComboBox::SetCurSel() to select it.
source share