IRichEditOle::InsertObject method (richole.h)
Inserts an object into a rich edit control.
Syntax
HRESULT InsertObject(
REOBJECT *lpreobject
);
Parameters
lpreobject
Type: REOBJECT*
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 they are not needed.
Return value
Type: HRESULT
Returns S_OK on success, or a failure code otherwise. E_OUTOFMEMORY is returned if memory could not be allocated to insert the object.
Remarks
If the cp member of the REOBJECT structure is REO_CP_SELECTION, the selection is replaced with the specified object.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | richole.h |
DLL | Msftedit.dll |
See also
Reference