VXPLib Documentation: COM
|
IVXPQuickHTML::DrawBackground
-
Draws the background contents of the current QHTML document as specified by tag <BODY>.
-
HRESULT DrawBackground(long dc, short x, short y, short width, short height, VARIANT_BOOL DrawBackColor, VARIANT_BOOL * success);
|
Parameters
-
dc [in] - Device context handle where the background is to be drawn.
x [in] - Left hand offset in pixels for the background to appear.
y [in] - Top offset in pixels for the background to appear.
width [in] - Width for the background in pixels
height [in] - Height for the background in pixels
DrawBackColor [in, defaultvalue(TRUE)] - When True fills the area with background color before popolating the area with the picture
success [out, retval] - Returns TRUE, if there was a correct background specified for the document
Remarks
-
This function uses two attributes of tag <BODY>: BGCOLOR and BACKGROUND to draw background of the document using
custom dimensions and device context. When a correct picture is specified by attribute BACKGROUND this function
populates area {x, y, width, height} with the picture. When no picture specified, or the picture wasn't found the parser will fill the area
with color specified by tag BGCOLOR, if parameter DrawBackColor has value TRUE. To find out whether the document has
a background picture use property HasBackgroundPicture of the interface.
See Also
- IVXPQuickHTML |
HasBackgroundPicture
|