Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

IRichEditOle::InsertObject method

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Richole.h

DLL

Msftedit.dll

See also

Reference
IRichEditOle
REOBJECT

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.