共用方式為


CRichEditCtrl::Paste

貼上剪貼簿中的資料輸入 CRichEditCtrl 插入點,插入號 (Caret) 的位置。

void Paste( );

備註

資料,只有在剪貼簿中可辨認的格式,其中包含的資料插入。

如需詳細資訊,請參閱 Windows SDK的 WM_PASTE

範例

// Replace all of the text with the text in the clipboard.
m_myRichEditCtrl.SetSel(0, -1);
m_myRichEditCtrl.Paste();

需求

Header: afxcmn.h

請參閱

參考

CRichEditCtrl 類別

階層架構圖表

CRichEditCtrl::Copy

CRichEditCtrl::Cut

CRichEditCtrl::PasteSpecial