Im trying to cause my ComboBox select the list entry
which corresponds to the one the user types.
The problem is that after the entry is selected,
it is somehow deselected.
Im doing this during the function OnEditupdate.
MFC probably calls some other functions after OnEditUpdate.
How can i solve it ?
Im using a simple ComboBox in Visual C++ 5, NT 4.
CComboBox* pCombo =(CComboBox*)GetDlgItem(IDC_COMBO1);
int res = pCombo->FindString(0, m_sCombo);
if (res != CB_ERR)
pCombo->SetCurSel(res); //selects, but later
thanks in advance,