15,979
社区成员
发帖
与我相关
我的任务
分享
void CXXXDlg::OnSelchangeCombo1()
{
// TODO: Add your control notification handler code here
CString strContent;
int nIndex = m_ComboBox.GetCurSel();//获取选中项的索引
if( nIndex != LB_ERR )
{
m_ComboBox.GetLBText(nIndex,strContent); //获取选中项的内容,保存到strContent中
UpdateData(FALSE);
}
}
void CXXXDlg::OnSelchangeCombo1()
{
// TODO: Add your control notification handler code here
int nIndex = m_ComboBox.GetCurSel();
if( nIndex != LB_ERR )
{
m_ComboBox.GetLBText(nIndex,m_strCity); //CString m_StrCity ComboBox Ctrl
UpdateData(FALSE);
}
}