Can't get a combo box to display its content. If I query for its content, it seems to be working fine. CB_GETCOUNT returns the correct number, for example. I'm not sure what to make of it...
Code:
DLG_MASTERCONFIGURE DIALOG 0, 0, 260, 140
.....
BEGIN
.....
COMBOBOX IDCMB_SCREENNUM, 18, 88, 35, 13, CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL
.....
END
Code:
case WM_INITDIALOG:
{
int si;
char ScreenNum[3];
for(si = 1; si <= NumberOfScreens; ++si)
{
snprintf(ScreenNum, 3, "%i", si);
SendDlgItemMessage(hDlg, IDCMB_SCREENNUM, CB_ADDSTRING, 0, (LPARAM)ScreenNum);
}
}
break;