I've created a custom dialog box which has a combo box control and two edit boxes. I have no problem in using the custom dialog box in my setup program but i can't seem to populate the combo box control when the dialog is initialized (ie at DLG_INIT). Here is my code:
nReturn = CtrlSetList(szDialogName, SQLSERVERS_COMBO, listSQLServers);
I've checked the listSQLServers and it has a list of SQL Server names. szDialogName is the name of my dialog box and SQLSERVERS_COMBO has the ID defined (from the header files in C++). nReturn is zero, indicating that the setting was successful. However, when the dialog box pops up, the combo box control is empty! Any ideas? Thanks.
Regards,