void CScoreQuaDlg::OnSelchangeCombo1() 
{
UpdateData(true);
AfxMessageBox(m_testdate);
}
每一次显示的都有是上次选中的值.
m_testdate为绑定的变量

解决方案 »

  1.   

    UpdateData(true);==>>UpdateData(TRUE);
      

  2.   

    还有Combox属性->styles->Type 要选DropList....
      

  3.   

    // Select the next item of the selected item in the combo box.
    int nIndex = pmyComboBox->GetCurSel();
    int nCount = pmyComboBox->GetCount();
    if ((nIndex != LB_ERR) && (nCount > 1))
    {
      if (++nIndex < nCount)
        pmyComboBox->SetCurSel(nIndex);
      else
        pmyComboBox->SetCurSel(0);
    }