Adding items to ComboBox (VS c/c++)
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!
From the sounds of it the best place would be when handling WM_INITDIALOG. And "DCPU" should be cast to LPARAM.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement