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.
HRESULT SetDvaspect(
LONG iob, | |
DWORD dvaspect | |
); |
Parameters
iob
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
Aspect to use when drawing. The values are defined by OLE.
Return Values
Returns success status. Use GetScode to retrieve an SCODE. Can be S_OK on success or E_INVALIDARG if the index is invalid.
See Also