Click to See Complete Forum and Search --> : problems with CComboBox
April 7th, 1999, 06:11 PM
Can anybody please help me with this? I've got a dialog containing 2 combo boxes. I can fill those boxes in without a problem (using AddString in the InitDialog function), but when I run the application, the ListBox portion of the combo box never shows when I push the down arrow. Instead, I get a thick, black line under the text box. What have I done wrong? I've got nothing in the code except for AddItem calls to populate the combobox. Thanks in advance.
Modesty
April 7th, 1999, 06:45 PM
Check your Dialog template settings for the Drop-Down's
width of the combobox in your RC file.
:-)
Modesty Zhang
================================
April 20th, 1999, 03:40 PM
I have a simmilar problem, however I only see a single entry in the listbox portion of the combobox. I don't think its the 'width' of the control that is the problem. In my case it seem to be the height of the drop down list. It there a way to expand the height of the drop down list of the CComboBox?
Chris Wheeler
April 20th, 1999, 04:00 PM
Yes. In the dialog editor, click on the ComboBox to select it. Now, hover over the down arrow so that the mouse cursor changes to a double headed arrow. Click there and a subtle change should take place--the boxes on each side of the ComboBox change. Along the bottom, the box should be filled and all the rest should be hollow. Drag the bottom down. That's the dropdown list height. Wherever you drag it to, that's how far down the list box will drop.
Chris R. Wheeler, MCP
Pensacola Christian College
Desktop Programmer
cwheeler@pcci.edu
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.