Hi,
In my HTMLView based app, there is a DialogBar resource template upon which there is a ComboBox control placed on it. In this Combo control exists defined choices. As you may know, no directly assigned variables are able to be created and assigned to the controls as happens in a normal dialog based app, as to get interaction with the controls on the user created toolbar the toolbar is assoiciated with the HTMLView class that is created rather than a class based on CDialog. My problem is that I need to access the selected data as an int. But the only way I am led to believe to get access to the combobox index is via something like this:-
CComboBox* pCBox = (CComboBox*)m_ComboBox.GetCurSel();
//where m_ComboBox is a ComboBox type variable
This compiles okay, but gives an assert failure, and further I am unable to find an answer on how to convert the pointer into something more usable anyway.
Any suggestions as to a solution most welcome
R
In my HTMLView based app, there is a DialogBar resource template upon which there is a ComboBox control placed on it. In this Combo control exists defined choices. As you may know, no directly assigned variables are able to be created and assigned to the controls as happens in a normal dialog based app, as to get interaction with the controls on the user created toolbar the toolbar is assoiciated with the HTMLView class that is created rather than a class based on CDialog. My problem is that I need to access the selected data as an int. But the only way I am led to believe to get access to the combobox index is via something like this:-
CComboBox* pCBox = (CComboBox*)m_ComboBox.GetCurSel();
//where m_ComboBox is a ComboBox type variable
This compiles okay, but gives an assert failure, and further I am unable to find an answer on how to convert the pointer into something more usable anyway.
Any suggestions as to a solution most welcome
R