IRichEditOle::GetObject method
Retrieves information, stored in a REOBJECT structure, about an object in a rich edit control.
Syntax
HRESULT GetObject( LONG iob, REOBJECT *lpreobject, DWORD dwFlags );
Parameters
- iob
-
Type: LONG
Zero-based index that specifies which object to return information about. If this parameter is REO_IOB_USE_CP, information about the object at the character position specified by the REOBJECT structure is returned.
- lpreobject
-
Type: REOBJECT*
Structure that receives information about the object. The reference count of the interfaces returned in this structure has been incremented; it is the responsibility of the caller to use the Release method to decrement the count.
- dwFlags
-
Type: DWORD
Operation flags that specify which interfaces to return in the structure. The dwFlags parameter can be a combination of the following values.
Return value
Type: HRESULT
Returns S_OK if successful, or an error value otherwise. E_INVALIDARG is returned if no buffer for the REOBJECT structure was given or if the iob value or character position is invalid.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
DLL |
|
See also
- Reference
- IRichEditOle
- REOBJECT
Send comments about this topic to Microsoft
Build date: 10/27/2012
