I have a WTL application that uses an advanced combobox control (Win32 class ComboBoxEx32 ) with the style CBS_DROPDOWNLIST . It works well (I can have images against each element in the field), but the keyboard behavior is different from the usual combobox - pressing a key does not go to the first element in a combo that starts with this letter.
For example, if I add the lines “Arnold”, “Bob” and “Charlie” to the combo, if I then select the combo and press “B”, then “Bob” will not be selected.
Does anyone know how to make this work? Currently, the only idea I can think of is to somehow subclass the "actual" combobox (I can get the handle to this message CBEM_GETCOMBOCONTROL ) and process WM_CHARTOITEM . This is PITA, so I thought I would ask if anyone else had this problem before.
source share