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

请参见

参考

CComboBox选件类

层次结构图

CComboBox::Copy

CComboBox::Cut

CComboBox::Paste

WM_CLEAR