1.利用CComBox对象里面的函数:
 
CString temp;
int i = m_combox.GetCurSel();//获取索引,0-N
m_combox.GetLBText(i,temp);
 
2.利用基类函数
 
m_combox.GetWindowText(temp);
int i = atoi(temp);

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-11-17
猜你喜欢
  • 2021-10-22
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-12-26
  • 2022-12-23
相关资源
相似解决方案