Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CCombobox will selecet the related string after showdropdown() how to fix it?

What I have tried:

change the Sort Attribute, use Insertstring instead of addstring,
Posted
Updated 13-Mar-16 22:10pm

1 solution

Because this is common practice for combo box controls and a user expects it to be so:
The list item that matches the text in the edit field will be pre-selected.

If you want to select another item or use no selection, call CComboBox::SetCurSel[^]. But note that this will also update the content of the edit field.
 
Share this answer
 
Comments
TimGallin 14-Mar-16 6:47am    
Thank you! I have worked it out.You can read this article. http://www.codeproject.com/Tips/61990/A-way-to-disable-auto-select-based-on-partial-stri

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900