void CScoreQuaDlg::OnSelchangeCombo1()
{
UpdateData(true);
AfxMessageBox(m_testdate);
}
每一次显示的都有是上次选中的值.
m_testdate为绑定的变量
{
UpdateData(true);
AfxMessageBox(m_testdate);
}
每一次显示的都有是上次选中的值.
m_testdate为绑定的变量
调试欢乐多
int nIndex = pmyComboBox->GetCurSel();
int nCount = pmyComboBox->GetCount();
if ((nIndex != LB_ERR) && (nCount > 1))
{
if (++nIndex < nCount)
pmyComboBox->SetCurSel(nIndex);
else
pmyComboBox->SetCurSel(0);
}