|
-
March 29th, 1999, 09:11 AM
#1
Editable CComboBox, One String is "123456", then the user modifes to "1234", and
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 !
-
March 29th, 1999, 10:45 AM
#2
Re: Editable CComboBox
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.
-
March 30th, 1999, 01:09 AM
#3
Not so easy...
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|