|
From: Tatsh <dd...@gm...> - 2011-03-30 16:03:45
|
Wondering if you guys know the answer to this. Unfortunately, it doesn't seem
very easy to make a BHO with Mingw, so I had to revert to VC++ (for ATL).
I'm having an issue where I add items to a ComboBox with SendMessage but the
Combo box row height is still 1 and shows those 2 tiny arrows on the right.
Sending the message to show a minimum amount of items fails and according to
MSDN, the number of items showing should be 30 (which is good enough), but
that isn't happening. Test machine is XP SP3 with IE8.
// Resource
COMBOBOX IDC_COUNTRY,70,45,143,30,CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
// Add countries to combo box on init
control = GetDlgItem(hwndDlg, IDC_COUNTRY);
for (i = 0; i < sizeof(*countryList); i++) {
SendMessage(control, CB_ADDSTRING, 0, (LPARAM)countryList[i]);
}
Thanks
|