CRichEditView::DoPaste

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

Call this function to paste the OLE item in dataobj into this rich edit document/view. 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.

CRichEditView OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::Paste, CRichEditView::IsRichEditFormat, CRichEditView::InsertItem