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

Started by
1 comment, last by Tompa 20 years, 6 months ago
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!
Advertisement
From the sounds of it the best place would be when handling WM_INITDIALOG. And "DCPU" should be cast to LPARAM.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

Thanks! That did the trick.

This topic is closed to new replies.

Advertisement