ComboBox is giving me a hard time

Posted on 2003-02-25
Medium Priority
Last Modified: 2013-11-20

I had the same problem as someone before, but mine isn´t solved by creating a variable for the combobox and putting it on a number.

I still can´t see the entire list.

This is the code

CComboBox* pCombo = (CComboBox*)GetDlgItem(IDC_COMBO1);
return true;

The only thing I see when I look at my ComboBox is Combo1 and the rest isn´t there.


Question by:heiko_kw
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 32

Expert Comment

ID: 8018192
I suspect you've not properly SIZED the ComboBox in the dialog editor.  If you make the EXPANDED size one line tall you will not be able to see and choice but the first one.  (It's an easy mistake to make...)

1) Open the dialog in the dialog editor.
2) Select the combo.
3) Click on the "V" of the combo.  (I.e. the DROPDOWN arrow)
4) Use the center "grab handle" to drag the EXPANDED size down so that multiple choices can be accomodated.
5) Save and the rebuild your project.
6) The combo should work as you expect.

Accepted Solution

Manirup earned 200 total points
ID: 8022934
The code that u have written doesn't seem to have any problem. I doubt, the combo-box that u have put in the dialog doesn't have the length downwards to show all the three. It will be better if u drag the length of the combo-box longer. For that u will have to click the drop down button on the combo-box. If u can't do that, then delete this combo-box, and create another and run with same code, with combo-box being created longer downwards.
If u still find the same problem, let me know.

Author Comment

ID: 8023935
Thank you very much Manirup that solves my stupid problem
LVL 32

Expert Comment

ID: 8024717
So why did you accept Manirup's answer which was posted 12 hours later?  My comment is the correct procedure.

Please explain yourself!

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question