Partager via


CRichEditView::DoPaste

Call this function to paste the OLE item in dataobj into this rich edit document/view.

void DoPaste(
   COleDataObject& dataobj,
   CLIPFORMAT cf,
   HMETAFILEPICT hMetaPict 
);

Parameters

  • dataobj
    The COleDataObject containing the data to paste.

  • cf
    The desired Clipboard format.

  • hMetaPict
    The metafile that represents the item to be pasted.

Remarks

The framework calls this function as part of the default implementation of QueryAcceptData.

This function determines the type of paste based on the results of the handler for Paste Special. If cf is 0, the new item uses the current iconic representation. If cf is nonzero and hMetaPict is not NULL, the new item uses hMetaPict for its representation.

Requirements

Header: afxrich.h

See Also

Reference

CRichEditView Class

Hierarchy Chart

CRichEditCtrl::Paste

CRichEditView::IsRichEditFormat

CRichEditView::InsertItem

Other Resources

CRichEditView Members