展开全部
给组合框关联控件变量、添加CBN_SELCHANGE消息响应函数
void CMfcdlg2014Dlg::OnSelchangeCombo1()
{
// TODO: Add your control notification handler code here
int n;
n = m_combo.GetCurSel();
CString s;
m_combo.GetLBText(n, s);
SetDlgItemText(IDC_EDIT1, s);
}
void CMfcdlg2014Dlg::OnSelchangeCombo1()
{
// TODO: Add your control notification handler code here
int n;
n = m_combo.GetCurSel();
CString s;
m_combo.GetLBText(n, s);
SetDlgItemText(IDC_EDIT1, s);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询