| dominicanjb (5) | |||||
I successfully created a combo box using the CreateWindow function. However, I can't figure out how to add items to it. After searching the net, this is what I found, but it doesn't work.
The item "item 1" should appear in the box, but it doesn't. Any help is greatly appreciated. DominicanJB | |||||
|
Last edited on
|
|||||
| guestgulkan (2831) | |||
|
I assume your combobox is actually being created. If so - then the height of the combobox is too small. You have a height of 21. Try a height of 210 You will probably find that only 1 item is visible Item1 - because you cannot send an array of items to a combobox - you have to send each item individually. Example Code
| |||
|
|
|||
| dominicanjb (5) | |||
|
guestgulkan, You are right on the money. The height of the window was too small for the text to appear. I know I have to add each item individually. I was just trying to to see if I could just add the first item as a test. I have not tried it, but I'd assume a loop should also work like the following:
Thanks a bunch! DominicanJB | |||
|
Last edited on
|
|||