Click here to Skip to main content
15,887,346 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
How to get the scroll bar in ccombobox
i have created a ccombobox and added some string to it. when i pressed the drop down arrow it only show a single item at a time with small up and down arrow keys.

How to show the full list with scroll bar
Posted
Comments
Volynsky Alex 11-Aug-12 7:45am    
You need to increase the height of the drop down of combo box in designer.

Through the designer by default you can just resize the ComboBox width. If you want to resize the Drop Down List height you need to click on the dropdown arrow on the right, then you'll be able to resize the dropped control height. This seems so easy but if no-one tells you it's anything but intuitive.

Another method to set height of the drop down of combo box is to manualy edit rc file. You can set 5th parameter which is responsible for height of the drop down (72 in this example).

COMBOBOX IDC_COMBOBOX1,17,35,157,72,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
wedagedara 11-Aug-12 7:51am    
Solved. Thanks a lot.
Volynsky Alex 11-Aug-12 7:55am    
You are welcome :)

1 solution

Try to do it:
C++
ShowDropDown(true);
 
Share this answer
 

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