Archived

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

Tompa

Adding items to ComboBox (VS c/c++)

Recommended Posts

When I add data (in the form of strings) to my combobox with: SendMessage(comboPointer, CB_ADDSTRING, 0, "DCPU"); I get multiple items DCPU instead of just one. Does anyone know where this code should be placed? It is currently placed at the top of the procedure for handling the dialog box. I also get compilation warnings about my "DCPU" being a string, but it should be a long. Can anyone help me? Thanks!

Share this post


Link to post
Share on other sites