So I am attempting to cut my CPP teeth on an existing application.
I ran into a bit of a snag. My combobox items are being added in order as you can see below. However, the output is
[1,10,11,12,13,14,15,2,3,4,5,6,7,8,9]
I have looked at the CComboBox documentation here. Yet, I still am confused as to why this is producing this result.
for (int i = 1; i <= m_pPage2->GetNumberColumns(); i++)
{
CString szColNum;
szColNum.Format (_T("%d"), i);
m_cSubColumn.AddString(szColNum);
}