Hi, I'm trying to create a simple combo box with the numbers 0-9 in its list. The interface for the combo box is done through MS Visual C++, and the code that will put the data inside the combo box is contained in a .cpp file. The combo box on the interface is called IDC_COMBO. Here is the code:
//Relate a variable to the interface combo box
CComboBox cbCombo:GetDlgItem(NULL, IDC_COMBO));
//Fill the list
cbCombo.AddString("0");
cbCombo.AddString("1");
.
.
.
cbCombo.AddString("9");
The combo box appears with a list, but the list is blank. What am I doing wrong here?
//Relate a variable to the interface combo box
CComboBox cbCombo:GetDlgItem(NULL, IDC_COMBO));
//Fill the list
cbCombo.AddString("0");
cbCombo.AddString("1");
.
.
.
cbCombo.AddString("9");
The combo box appears with a list, but the list is blank. What am I doing wrong here?