UpdateData not working with Dropdown style CComboBox
Posted on 2003-03-24
I understand that UpdateData is not supposed to work with the Droplist style of combobox, but I have a DropDown style combobox that it is not working with. It is a pretty simple set of code, just created the dialog in the resources and had classwizard add member variables for 2 combo boxes. From the ON_CBN_SELCHANGE handler I tried setting the member variable by calling UpdateData(). It returns 1 but the value of the member variable does not change. I tested the value in the combobox by immediately calling GetLBText to retrieve the data, and that works fine.
What could I be doing that the UpdateData() is not working?
Urgently awaiting an answer,