Hi All,
In the following book I am using there is an example for working with Combo Boxes. It states "The Combo Box is populated from within the dialog box's OnInitDialog() function. To do this, first add a new member function named PopulateCombo() with return type void. Then edit OnInitDialog().
BOOL CDialog::OnInitDialog()
{
.
.
.
PopulateCombo();
return true;
}
I did manually add the PopulateCombo()and update the ListDlg.h file
My question is there a way to use the Class Wizard to do this.
Second question. After compiling and running the program I tried to open the Class Wizard and received the following error message:.
parsing error: Expected ";"
Input line void PopulateCombo();
I did not get this message yesterday.
MPSoutine
In the following book I am using there is an example for working with Combo Boxes. It states "The Combo Box is populated from within the dialog box's OnInitDialog() function. To do this, first add a new member function named PopulateCombo() with return type void. Then edit OnInitDialog().
BOOL CDialog::OnInitDialog()
{
.
.
.
PopulateCombo();
return true;
}
I did manually add the PopulateCombo()and update the ListDlg.h file
My question is there a way to use the Class Wizard to do this.
Second question. After compiling and running the program I tried to open the Class Wizard and received the following error message:.
parsing error: Expected ";"
Input line void PopulateCombo();
I did not get this message yesterday.
MPSoutine