Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Combobox's listbox don't resize?

This topic is 6118 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

hi there, I need some help here. Under my dialogproc(), my WM_INITDIALOG looks like this:
HWND combo = GetDlgItem(hwnd, IDC_COMBO1);
int j;

for (j = 0; j < 12; j++)
  SendMessage(combo, CB_ADDSTRING, 0, (LPARAM) g_month[j]);
Now the problem is, the so-called dropdown-listbox just showed up as a black line (some sort of a listbox with height = 1) instead of a ''bigger'' listbox. However, I could use the keyboard to select/choose the string from the combo (so it seems that my strings are already added). Anyone knows how to fix this?

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!