CComboBox::Cut

删除(剪辑)当前选择,如果有,组合框中编辑控件和复制到剪贴板已删除的文本的 CF_TEXT 格式。

void Cut( );

备注

若要删除当前选择,而不放置在剪贴板上已删除的文本,请调用 清除 成员函数。

示例

// Delete all of the text from the combo box's edit control and copy it
// to the clipboard.
m_MyComboBox.SetEditSel(0, -1);
m_MyComboBox.Cut();

要求

Header: afxwin.h

请参见

参考

CComboBox选件类

层次结构图

CComboBox::Clear

CComboBox::Copy

CComboBox::Paste

WM_CUT