How to avoid item selection when combobox ShowDropDown() is called

How to avoid item selection when combobox ShowDropDown() is called

Post by Tmlja3 » Wed, 24 Nov 2004 06:13:02


hi,all

I got a problem when I was using a CComboBox in my app. I want it work as
IE's address box. When you enter http://www.yqcomputer.com/ , it will display the list and
show www.msn.com, www.microsoft.com, ........, all maches. But does not copy
any item to address box. After I call FindString(), and then call
ShowDropDown() to show the matches list, it automatically copy the first item
to the combobox's editbox. I don't want this copying. Does anyone know how to
do this?

Thanks