Поделиться через


CRichEditCtrl::Paste

Inserts the data from the Clipboard into the CRichEditCtrl at the insertion point, the location of the caret.

void Paste( );

Заметки

Data is inserted only if the Clipboard contains data in a recognized format.

For more information, see WM_PASTE in the Windows SDK.

Пример

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

Требования

Header: afxcmn.h

См. также

Основные понятия

CRichEditCtrl Class

CRichEditCtrl Members

Hierarchy Chart

CRichEditCtrl::Copy

CRichEditCtrl::Cut

CRichEditCtrl::PasteSpecial