What's new

Need help with ComboBox

Teamz

J'aime tes seins
VC++ WIN32 API

hDlgItem = GetDlgItem(hwnd, IDC_CONFIG_COMBODEVICES);
SendMessage(hDlgItem, CB_ADDSTRING, 0, (LPARAM)"test");

when I click on the Combo box I can't see no items at all

if I use CB_GETCOUNT it returns 1 so the item is actually in the list item

anyone has a suggestion?
 
OP
Teamz

Teamz

J'aime tes seins
look at the problem , this happen when I click on the combo box
 
OP
Teamz

Teamz

J'aime tes seins
I used the same code in another application and it shows the items but the arrows to scroll up and down are SO small

does anyone know why I don't get the same results with the same code? and how should i fix this ?
 

euphoria

Emutalk Member
In the resource editor if you push the downarrow the dropdown list appears and you can define its length.

PHP:
	for (i=0; i<CHARACTER_DATA; i++)
{
	if (memcard_info.characters[i] != 0xFF)
		SendMessage(GetDlgItem(hDlg, IDC_LIST_CHARACTERS), LB_ADDSTRING, 0, (LPARAM)characters[memcard_info.characters[i]]);
}

You should use something like that to initialize the box.
 
OP
Teamz

Teamz

J'aime tes seins
DAMMIT i feel SO stupid now lol

i didnt completely read your answer, only the code part, and yes it fixed my problem

I was looking to far for something that easy

thx man :doh:
 

Top