Partilhar via


CComboBox::Copy

Copies the current selection, if any, in the edit control of the combo box onto the Clipboard in CF_TEXT format.

void Copy( );

Example

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

Requirements

Header: afxwin.h

See Also

Reference

CComboBox Class

Hierarchy Chart

CComboBox::Clear

CComboBox::Cut

CComboBox::Paste

WM_COPY

Other Resources

CComboBox Members