Skip to main content
GameDev.net gamedev.net
🔒 Locked

Combo Box control

Started by DesignerX Oct 10, 2004 at 3:56 PM 1 replies 850+ views
Original Post
DesignerX
DesignerX
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 ????
There is nothing that can't be solved. Just people that can't solve it. :)
Skizz
Skizz
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
Aprosenf
Aprosenf
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.