首页 > 其他 > 详细

CCombox使用

时间:2015-10-20 12:00:00      阅读:294      评论:0      收藏:0      [点我收藏+]

1、得到选中的combox的文本信息

int nIndex = m_SType.GetCurSel();//样本类型

m_SType.GetLBText(nIndex, m_data->SType);

2、设置相应选中项

CString sunit;
sunit.Format(m_data->sISEUnit);

int nIndex = m_IseUnit.FindString(0, sunit);
m_IseUnit.SetCurSel(nIndex);

UpdateData(FALSE);

CCombox使用

原文:http://www.cnblogs.com/MiLu/p/4894132.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!