CComboBox::Clear
删除(清除)当前选择,如果有,组合框的编辑控件。
void Clear( );
备注
若要删除当前选择和放置在剪贴板上已删除的内容,请使用 剪辑 成员函数。
示例
// Delete all of the text from the combo box's edit control.
m_MyComboBox.SetEditSel(0, -1);
m_MyComboBox.Clear();
要求
Header: afxwin.h
删除(清除)当前选择,如果有,组合框的编辑控件。
void Clear( );
若要删除当前选择和放置在剪贴板上已删除的内容,请使用 剪辑 成员函数。
// Delete all of the text from the combo box's edit control.
m_MyComboBox.SetEditSel(0, -1);
m_MyComboBox.Clear();
Header: afxwin.h