Original Post
I seem to be having a problem with the combo box i created in the dialog editor using the toolbox The combo box when running doesn't seem to show any of the strings i added. Ive double checked the ID's are correct, and count always seems to be 0, and @err,hr doesn't show anything other than OK, any ideas?
static const char* NotUsed = "**";
switch( msg )
{
case WM_INITDIALOG:
//lights
handle = GetDlgItem(hwnd,IDC_COMBOBOX_LIGHTS);
SendMessage(handle, CB_ADDSTRING, 0, (LPARAM) "Light1");
SendMessage(handle, CB_ADDSTRING, 0, (LPARAM) "Light2");
SendMessage(handle, CB_ADDSTRING, 0, (LPARAM)(LPCSTR) "Light3");
SendMessage(handle, CB_ADDSTRING, 0, (LPARAM)(LPCSTR) NotUsed2);
count = SendMessage(handle, CB_GETCOUNT, 0, 0);
return 0;
}