IRichEditOle::SetDvaspect method

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

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

IRichEditOle

 

 

Community Additions

ADD
Show:
© 2014 Microsoft