组合框的 Drop List数据成员 如何只能是int呀 为什么不是CString呀
组合框的 Drop List数据成员 怎么只能是int呀 为什么不是CString呀
如题
------解决方案--------------------
绑定成Control变量好了
CComboBox m_comboBox;
DDX_Control(pDX, IDC_COMBO, m_comboBox);
CString strValue = m_comboBox.GetWindowText();
------解决方案--------------------
int,关联的是被选中项的索引。
GetText(int,CString&); //获取第k项的字符串,下标从0开始
如题
------解决方案--------------------
绑定成Control变量好了
CComboBox m_comboBox;
DDX_Control(pDX, IDC_COMBO, m_comboBox);
CString strValue = m_comboBox.GetWindowText();
------解决方案--------------------
int,关联的是被选中项的索引。
GetText(int,CString&); //获取第k项的字符串,下标从0开始