CString str, str2;
int n;
for (int i=0;i < pmyComboBox->GetCount();i++)
{
pmyComboBox->GetLBText( i, str );
// use str here
}
如果要得到当前选中的,先用GetCurSel取得选中索引,再用GetLBText取得字符串。
int n;
for (int i=0;i < pmyComboBox->GetCount();i++)
{
pmyComboBox->GetLBText( i, str );
// use str here
}
如果要得到当前选中的,先用GetCurSel取得选中索引,再用GetLBText取得字符串。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货