Called by MSHTML to render the Dynamic HTML (DHTML) behavior.
Syntax
HRESULT Draw( HDC hdc, DWORD dwLayer, LPRECT prc, IUnknown *pReserved );
Parameters
- hdc
- [in] Handle to a device context in which the DHTML behavior is rendered.
- dwLayer
- [in] Unsigned long integer value that specifies the layer in which the DHTML behavior is to be rendered, as specified by IElementBehaviorRender::GetRenderInfo. It can be one of the following values:
- BEHAVIORRENDERINFO_BEFOREBACKGROUND
- Renders the behavior before rendering the background.
- BEHAVIORRENDERINFO_AFTERBACKGROUND
- Renders the behavior after rendering the background.
- BEHAVIORRENDERINFO_BEFORECONTENT
- Renders the behavior before rendering the text.
- BEHAVIORRENDERINFO_AFTERCONTENT
- Renders the behavior after rendering the text.
- BEHAVIORRENDERINFO_AFTERFOREGROUND
- Renders the behavior after rendering the foreground.
- prc
- [in] Address of a RECT structure that specifies the drawing area for the DHTML behavior.
- pReserved
- [in] Reserved for future use.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
Note This method is available as of Microsoft® Internet Explorer 5 and is subject to change in future versions.