Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MFC ComboBox not editable

I am populating a ComboBox with a list of strings to be selected from. But in addition I can select the ComboBox and edit in my own string.

How can I disabled this behavior so you can not edit the ComboBox?

like image 506
Scorb Avatar asked Dec 04 '25 14:12

Scorb


1 Answers

Assuming you created the combobox on the Resource Editor, you should change the combobox's Type to Drop List:

Combobox Type = Drop List

I also recommend you to have Sort set to False, so the interface shows the elements ordered as you insert them instead of some magic sorcery that makes them to appear alphabetically.

like image 108
sergiol Avatar answered Dec 06 '25 07:12

sergiol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!