我知道怎麼用了 这是ListCreate部分,代码如下:listID = ListCreate(STRINGLIST); //create a list in your scriptt ListAddString(listID, "AAA", AFTER); ListAddString(listID, "BBB", AFTER); 在WaitOnDialog(szDialogName)的循环中,部分代码如下:case DLG_INIT: CtrlSetList("MyCustomDialog", RES_13555_ComboBox, listID); //sets the values into your combo box where listbox is the id of combo box 其中MyCustomDialog是对话框名,RES_13555_ComboBox是ComboBox的控件ID。
CComboBox::SetCurSel(..);
請問有哪位大大有例子參考呢? installshield的
搜索下installshield试用自定义对话框
这是ListCreate部分,代码如下:listID = ListCreate(STRINGLIST); //create a list in your scriptt
ListAddString(listID, "AAA", AFTER);
ListAddString(listID, "BBB", AFTER); 在WaitOnDialog(szDialogName)的循环中,部分代码如下:case DLG_INIT:
CtrlSetList("MyCustomDialog", RES_13555_ComboBox, listID); //sets the values into your combo box where listbox is the id of combo box
其中MyCustomDialog是对话框名,RES_13555_ComboBox是ComboBox的控件ID。