Ok, I have a dialog box, and I have a combo box within the dialog box. I am trying to add items to the combo box, but the program refuses to do it. Here are snippits of the dialog box definition in the rc script, and various relevant C code segments. . .
Here is from the rc file. . .
SETUPDIALOG DIALOG DISCARDABLE 20, 20, 186, 106
STYLE DS_SYSMODAL | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION |
FONT 8, "MS Sans Serif"
LTEXT "Generation Type:",IDC_STATIC,7,17,56,8
LTEXT "Generation Description:",IDC_STATIC,7,33,75,8
EDITTEXT IDC_EDIT1,7,44,172,35,ES_AUTOHSCROLL | ES_READONLY
COMBOBOX IDSETUP_COMBO,68,16,89,12,CBS_DROPDOWNLIST | WS_VSCROLL |
Here is the case from the oncommand function that creates the dialog box if someone calls setup. . .
FARPROC SetupProg =
DialogBox(hInstance,"SETUPDIALOG", MainWindow, (DLGPROC)SetupProg);
InvalidateRect(hwnd, NULL, TRUE);
Here is the dialog callback function. . . (I also tried to send a message to a dialog item too)
// Setup Dialog
BOOL CALLBACK SetupPrgDlgProc(HWND hDlg, UINT Message,
WPARAM wParam, LPARAM lParam)
strcpy(com,"Init dialog called");
if (LOWORD(wParam) == IDOK ||
LOWORD(wParam) == IDCANCEL)
I really want to be able to add multiple string options to this combo box for someone to select for the setup function, but it just doesn't want to add the strings. If someone else has run into this - or sees what I am doing wrong - any and all help would be most appreciated.