IRichEditOle::SetDvaspect method (richole.h)

Sets the aspect that a rich edit control uses to draw an object. This call does not change the drawing information cached in the object; this must be done by the caller. The call does cause the object to be redrawn.

Syntax

HRESULT SetDvaspect(
  LONG  iob,
  DWORD dvaspect
);

Parameters

iob

Type: LONG

Index of the object whose aspect is to be set. If this parameter is REO_IOB_SELECTION, the aspect of the selected object is to be set.

dvaspect

Type: DWORD

Aspect to use when drawing. The values are defined by OLE.

Return value

Type: HRESULT

Returns S_OK on success, or a failure code otherwise. E_INVALIDARG is returned if the index is invalid.

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

IRichEditOle