Condividi tramite


CComboBox::Cut

Deletes (cuts) the current selection, if any, in the combo-box edit control and copies the deleted text onto the Clipboard in CF_TEXT format.

void Cut( );

Remarks

To delete the current selection without placing the deleted text onto the Clipboard, call the Clear member function.

Example

// 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();

Requirements

Header: afxwin.h

See Also

Reference

CComboBox Class

Hierarchy Chart

CComboBox::Clear

CComboBox::Copy

CComboBox::Paste

WM_CUT

Other Resources

CComboBox Members