IRichEditOle::InsertObject  1ODG1PM

Inserts an object into a rich edit control.

HRESULT InsertObject(

    REOBJECT FAR * lpreobject

 

   );

 

 

Parameters

lpreobject

Pointer to a REOBJECT4OG_XKE structure containing the object information and interfaces. The rich edit control automatically increments the reference count for the interfaces if it holds onto them, so the caller can safely release the interfaces if not needed.

 

Return Values

Returns success status. Use GetScodeAJMLLO to retrieve an SCODE. Can be S_OK on success or E_OUTOFMEMORY if memory could not be allocated to insert the object.

If the cp member of the REOBJECT structure is REO_CP_SELECTION, the selection is replaced with the specified object.

See Also

IRichEditOle, REOBJECT