• ### Announcements

#### Archived

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

# Combobox's listbox don't resize?

## 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++)
{
}

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 on other sites
Goto the dialog editor, and click on the drop-down arrow. It should show the size of the listbox when you do this, make it bigger.

##### Share on other sites
Oh thanx! It works. Hard to spot it though.

• ## Partner Spotlight

• ### Forum Statistics

• Total Topics
627638
• Total Posts
2978327

• 10
• 12
• 22
• 13
• 34