This custom interface provides methods to MSHTML so that it can draw a rendering behavior.
Draw Called by MSHTML to render a behavior in the browser's client area. GetPainterInfo Called by MSHTML to retrieve information about the needs and functionality of a rendering behavior. HitTestPoint Called by MSHTML to retrieve a value that specifies whether a point is contained in a rendering behavior. OnResize Called by MSHTML when an element containing a rendering behavior is resized.
MSHTML calls the methods of IHTMLPainter whenever a rendered behavior needs to be redrawn or when a mouse click occurs on the element to which the behavior is attached. A rendering behavior must supply an implementation of this interface to MSHTML.
When a behavior is instantiated on a page, MSHTML automatically calls QueryInterface on the behavior's IElementBehavior interface, requesting an IHTMLPainter interface pointer to determine if the behavior is also a rendering behavior.
Stock Implementation None Custom Implementation Yes Inherits from IUnknown Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 5.5 Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 4.0