Sign in to follow this  

Combo Box control

This topic is 4814 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to add a combo box control to a dialog. In its properties I can initialize the combo box items list. when I test the dialog box (using the VC6++ test button) the combo box list is filled as needed but when I run the program and enter the dialog the combo box list is empty, why ????

Share this post


Link to post
Share on other sites
The combo box initialisation list in the resource editor only works for MFC applications. If you're using vanilla C/C++ then you'll have to write code in the dialog box's WM_INITDIALOG message to set up the combo box items.

Skizz

Share this post


Link to post
Share on other sites
Make sure the combo box has a height. Sometimes the list appears empty when it is not simply because its dropdown height equals its normal height. To change the height, open up the dialog in the dialog editor, click on the dropdown arrow, and then drag the blue square on the bottom-middle down a bit.

Share this post


Link to post
Share on other sites

This topic is 4814 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this