I can't drop down a combo box why?

I have a drop down combo in property sheet page and I added
three items with this code (I can't tell whether it actually adds the items and when I run it onlt shows the first item.

This the code

BOOL Page1::OnInitDialog()
{
      CPropertyPage::OnInitDialog();

      m_Paper.AddString("A4");
      m_Paper.AddString("A4R");
      m_Paper.AddString("A3");
      m_Paper.AddString("Acetate");
      m_Paper.SetCurSel(0);
      
      return TRUE;  // return TRUE unless you set the focus to a control
}

help!!

Thanks
LVL 12
gbzhhuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

captainkirkCommented:
You only see the first item until you click on the arrow button of the combo box. If on the other hand, this is not the problem, the only thing I have run into is that you need to right click on the arrow button when in the form designer and drag the outline down so that you can resize the displayed list... try that and let me know if that was the issue...
0
gbzhhuAuthor Commented:
Hi captainkirk

I do click on the arrow button of the combo box, but it still does not show anything.  It shows a little underline at the bottom of the combo as if about to drop down, but that is about it.

I tried your idea and I don't seem to be able to drag the outline.  When I right click it I only get the context menu, so how can you help.  Info: I have win 98 2nd version and Visual Studio 6 (without the Service Packs)

Please get back to me soon.  I have a lot of points to give and a few easy questions which are hard for me as I am a beginner to VC++

Cheers
0
captainkirkCommented:
Sorry - I said right click on the combo box's arrow button when in the form designer when I meant left click...
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

gbzhhuAuthor Commented:
By the way, I have just created a new app wizard dialog based application, put my combo code and it works fine.

The only difference is that my application is not  dialog based. It is a property sheet based application.  Do you any problems with property sheets.  I wanted at first to have a dialog based app with a tab control (CTabCtrl) in the dialog, but I could not put controls like combo in the right tab, I mean I could not attach controls to the tab that they should appear.  If this can be done I would very happy.  Now I have the property sheet app which was my second option, I have this problem with the combo box.  Is VC++ always like this or am I just a bad beginner

Cheers
0
captainkirkCommented:
Shouldn't be any difference between putting the ComboBox on a dialog or a PropertySheet... it's still going to be a child window...

did you try the left click on the combo box's arrow when designing your form??
0
gatkinsoCommented:

Make sure the resource element is drawn large enough to show the list box portion of the combobox.  
0
gbzhhuAuthor Commented:
Captiankirk,

Thanks, your solution worked, mid you I had to uncheck the Vertical Scroll property, before it would let me see the outline.

Please put a dummy question so that i can give the points.

Thank you other guys for contributing your ideas

 
0
captainkirkCommented:
You will have to first reject any outstanding answers, then it will open up for another answer to be posted...

thanks...
0
gbzhhuAuthor Commented:
Your answer was correct, but you failed to tell me how to make the combo large and as I am a beginner captainkirk told me and he will have the points.

Thanks for participating
0
captainkirkCommented:
Thank you ...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gbzhhuAuthor Commented:
cheers captainkirk
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.