怎样清空ComboBox里的值?

来源:百度知道 编辑:UC知道 时间:2024/09/22 01:12:20
RT 多谢
会有一列字符啊,那我应该怎样做啊,麻烦详细些,多谢

ComBoBox属性Data一项,让这一项没有值
或者使用DeleteString函数
extern CComboBox* pmyComboBox;

// Delete every other item from the combo box.
for (int i=0;i < pmyComboBox->GetCount();i++)
{
pmyComboBox->DeleteString( i );

让他等于空字符串""就可以了