CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    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 !

  2. #2
    Join Date
    Mar 1999
    Posts
    17

    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.




  3. #3
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    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
  •  





Click Here to Expand Forum to Full Width

Featured