大学里的培训班:来个高手帮我看一下下..

来源:百度文库 编辑:中科新闻网 时间:2024/04/28 15:06:33
我用classwizard定义个几个控件如下:
Control IDs: Type Member
IDC_SALE_TYPE CSting m_strType
IDC_SALE_TYPE CComboBox m_cmbType
IDC_SALE_LIST CListBox m_lstName

其中有一段代码如下:
int nStart;
int nIndex=m_cmbType.GetCursel();//①
m_cmbType.GetLBText(nIndex.m_strType);//②
m_lstName.ResetContent();//③

请问其中①②③中的函数的作用是什么?希望说能说得越详细越好..
谢谢...~0~

1、获取组合框中当前被选中项的序号
2、获取当前被选中项的内容,并存入m_strType这个字符串
3、将m_lstName这个列表框的内容清空。

同上