I expected to have 3 items in the combobox after that with the first one pre-selected. But all I get is one item, the first one. The other two are missing. Of cause I used the debugger and checked the return value of SendMessage. And as expected it was allways the itemindex of the freshly added item. So the items are in fact added. So why can't I see them?
Thanks in advance for any help
Last edited by AlionSolutions; February 25th, 2011 at 12:42 PM.
Re: CB_ADDSTRING for Combobox doesn't work as expected
Well, I feel a bit stupid now...
SendMessage(combo, CB_SETCURSEL, 0, 0);
SendMessage(combo, CB_SETCURSEL, 1, 0);
I noticed that the items in fact have been added. Just my Combo was to small to see them. So this has been solved by me, myself & I. Sorry for being stupid