Export (0) Print
Expand All
Expand Minimize


Call this function to create an embedded item from the contents of the Clipboard.

BOOL CreateFromClipboard( 
   CLIPFORMAT cfFormat = 0, 
   LPFORMATETC lpFormatEtc = NULL  


Flag specifying how the server will render the OLE item. For the possible values, see OLERENDER in the Windows SDK.


Specifies the Clipboard data format to be cached when creating the OLE item.


Pointer to a FORMATETC structure used if render is OLERENDER_FORMAT or OLERENDER_DRAW. Provide a value for this parameter only if you want to specify additional format information beyond the Clipboard format specified by cfFormat. If you omit this parameter, default values are used for the other fields in the FORMATETC structure.

Nonzero if successful; otherwise 0.

You typically call this function from the message handler for the Paste command on the Edit menu. (The Paste command is enabled by the framework if the CanPaste member function returns nonzero.)

For more information, see OLERENDER and FORMATETC in the Windows SDK.

Header: afxole.h

© 2014 Microsoft