给ComboBox绑定一个变量,如下,不绑定也可以(会比较烦)
CString strCBText; m_combox.GetLBText(m_combox.GetCurSel(), strCBText); 或 ((CComboBox*)GetDlgItem(IDC_COMBO1))->GetLBText(((CComboBox*)GetDlgItem(IDC_COMBO1))->GetCurSel(), strCBText);