Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves information about requirements that the IHTMLPainter::Draw method must meet.
Syntax
HRESULT retVal = object.GetDrawInfo(lFlags, pDrawInfo);
Parameters
lFlags [in]
Type: LONGLONG that specifies an HTML_PAINT_DRAW_INFO_FLAGS enumeration value indicating which members of the HTML_PAINT_DRAW_INFO structure should be filled.
pDrawInfo [out, retval]
Type: HTML_PAINT_DRAW_INFOPointer to a variable of type HTML_PAINT_DRAW_INFO that receives the viewport, update region, and/or transform information.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Typically, a custom implementation of IHTMLPainter::Draw will call IHTMLPaintSite::GetDrawInfo to obtain information it needs to redraw the behavior correctly, such as any transformation it needs to apply to its output.
The HTML_PAINT_DRAW_INFO_FLAGS constants can be combined with a bitwise OR operation (|) to construct the lFlags parameter.