Click to See Complete Forum and Search --> : Editable CComboBox, One String is "123456", then the user modifes to "1234", and


Braulio
March 29th, 1999, 08:11 AM
Hi,


I have an editable CComboBox, and if the user has one string that is "123456", and then modifies it by hand to "1234" ( in the edit box), and then press the dropdown button then the "1234" string is replaced by the "123456" string ( altough it cancel the operation), How can I avoid this ?


Thanks, Bye !

Once and Future Consultant
March 29th, 1999, 09:45 AM
Read up on UpdateData() and over riding the dialogue class functions. Start with the

tutorial Scribble that comes with VC.


Very briefly: You over ride the function that is called every time the combo box is

changed. You update the data so that the changes the user makes are accurately

reflected in the variable you store the data in. This is all easily done using the

class wizard.

Braulio
March 30th, 1999, 12:09 AM
Hi,


That thing works in theory, but the problem that I told you in the other question, is one case that don't works well ( try it and you will see). I don't know, perhaps is a ****ing bug or...


Any idea ? Thanks, Bye !

Braulio