Hi, I'm using a combobox setup and I have all my data listed in the box like so:
I do an UpdateData and use a pointer to the IDC control pointing to the variable for that IDC and then use the value of that pointer to a string, based off of an exampled posted by Velius in a previous posting to another user.
Everything seems to be working but when I select the value:
LVD_PTB and test to see if thats actually the value I am getting, it is not. I have to select the 3rd value:
to get the value LVD-PTB.
I'm guessing I have an idex issue not getting the correct location of the string. Does anyone see where I'm going wrong?
Code:CComboBox* pCB = (CComboBox*)GetDlgItem(IDC_COMBOBOX); CString str; pCB->GetWindowText(str);