BOOL CreateStaticFromClipboard( OLERENDER render = OLERENDER_DRAW, CLIPFORMAT cfFormat = 0, LPFORMATETC lpFormatEtc = NULL );
Return Value
Nonzero if successful; otherwise 0.
Parameters
render
Flag specifying how the server will render the OLE item. For the possible values, see OLERENDER in the OLE documentation.
cfFormat
Specifies the Clipboard data format to be cached when creating the OLE item.
lpFormatEtc
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.
Remarks
Call this function to create a static item from the contents of the Clipboard. A static item contains the presentation data but not the native data; consequently it cannot be edited. You typically call this function if the CreateFromClipboard member function fails.
For more information, see OLERENDER and FORMATETC in the OLE documentation.
COleClientItem Overview | Class Members | Hierarchy Chart
See Also COleDataObject::AttachClipboard, COleClientItem::CanPaste, COleClientItem::CreateStaticFromData