VXPLib Documentation: COM

IVXPQuickHTML::DrawState

Draws the current QHTML document using API function DrawState (read MSDN).


HRESULT DrawState(long hDC, short X, short Y, long dssFlags, OLE_COLOR Color, VARIANT_BOOL * bSuccess);


Parameters

hDC [in] - Device context handle where the current QHTML document is to be drawn
X [in] - Left hand offset in pixels for the drawing to appear.
Y [in] - Top offset in pixels for the drawing to appear.
dssFlags [in] - a mask of dss values (see Remarks).
Color [in, defaultvalue(0)] - Optional color parameter to be used only when dssMono flag is set (see Remarks).
bSuccess [out, retval] - Return value: True, if the function succeeded, or False otherwise.
Remarks

Use this function to apply a visual effect or combination of effects when drawing QHTML documents.
The effects are defined through type VXPDrawState:

  • dssDisabled - Embosses the document to make it look disabled;
  • dssMono - Draws the document with just one color specified by parameter Color
  • dssUnion - Dithers the document
  • dssNormal - Draws the document the same way method Draw does, without any visual effect.

Implementation of this method is forwarded to API function DrawState described in MSDN.
See Also

IVXPQuickHTML Overview


This document was last updated on 14/05/2003