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


CRichEditCtrl::PasteSpecial

Pastes data in a specific Clipboard format into this CRichEditCtrl object.

void PasteSpecial(
   UINT nClipFormat,
   DWORD dvAspect = 0,
   HMETAFILE hMF = 0 
);

Параметры

  • nClipFormat
    Clipboard format to paste into this CRichEditCtrl object.

  • dvAspect
    Device aspect for the data to be retrieved from the Clipboard.

  • hMF
    Handle to the metafile containing the iconic view of the object to be pasted.

Заметки

The new material is inserted at the insertion point, the location of the caret.

For more information, see EM_PASTESPECIAL in the Windows SDK.

Пример

// Paste the data from the clipboard as text. 
m_myRichEditCtrl.PasteSpecial(CF_TEXT);

Требования

Header: afxcmn.h

См. также

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

CRichEditCtrl Class

CRichEditCtrl Members

Hierarchy Chart

CRichEditCtrl::Paste

CRichEditCtrl::Copy

CRichEditCtrl::Cut