Called by MSHTML when an element containing a rendering behavior is resized.
HRESULT retVal = object.OnResize(pt);
- pt [in]
SIZE structure that specifies the new width and height for the element, including any expanded region.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
This method enables a behavior to respond to window resize events or to element resizing in design mode. A rendering behavior, for instance, could recalculate drawing parameters during the call to IHTMLPainter::OnResize.