Share via


CComboBox::Paste

現在のカーソル位置にコンボ ボックスのエディット コントロールにクリップボードからデータを挿入します。

void Paste( );

解説

データがクリップボードに CF_TEXT の形式のデータが含まれている場合にのみ挿入します。

使用例

// Replace all of the text in the combo box's edit control with the text
// in the clipboard.
m_MyComboBox.SetEditSel(0, -1);
m_MyComboBox.Paste();

必要条件

ヘッダー: afxwin.h

参照

関連項目

CComboBox クラス

階層図

CComboBox::Clear

CComboBox::Copy

CComboBox::Cut

WM_PASTE