I need to convert the currently selected item from a combo box into a cstring, int, and float. What's the best way?
For example,
int selectedIndex = myComboBox.GetCurSel();
// convert to string, int, and float, these don't work
CString dataString = myComboBox.GetItemData(sel
ectedIndex
);
int dataInt = myComboBox.GetItemData(sel
ectedIndex
);
float dataFloat = myComboBox.GetItemData(sel
ectedIndex
);
Start Free Trial