COleClientItem::CreateNewItem
BOOLCreateNewItem(REFCLSIDclsid**,OLERENDERrender=OLERENDER_DRAW,CLIPFORMATcfFormat=0,LPFORMATETClpFormatEtc=NULL);**
Return Value
Nonzero if successful; otherwise 0.
Parameters
clsid
ID that uniquely identifies the type of OLE item to create.
render
Flag specifying how the server will render the OLE item. For the possible values, see in the OLE documentation.
cfFormat
Specifies the Clipboard data format to be cached when creating the OLE item.
lpFormatEtc
Pointer to a 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 an embedded item; this function launches the server application that allows the user to create the OLE item. The framework calls this function if the user chooses OK from the Insert Object dialog box when the Create New button is selected.
For more information, see , , and in the OLE documentation.
COleClientItem Overview | Class Members | Hierarchy Chart
See Also COleInsertDialog::CreateItem