Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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  
);

dataobj

The COleDataObject containing the data to paste.

cf

The desired Clipboard format.

hMetaPict

The metafile that represents the item to be pasted.

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.

Header: afxrich.h

Community Additions

ADD
Show:
© 2015 Microsoft