resizeBy method

Changes the current size of the application window by the specified offset values.


HRESULT retVal = object.resizeBy(x, y);


  • x [in]
    Type: LONG

    A LONG that indicates the horizontal offset in pixels.

  • y [in]
    Type: LONG

    A LONG that indicates the vertical offset in pixels.


The IHTMLOMWindowServices::resizeBy method was introduced in Microsoft Internet Explorer 6 for Windows XP Service Pack 2 (SP2).

This method is for applications that host the WebBrowser Control. It intercepts the IHTMLWindow2::resizeBy call from script and resizes the application window.

Note When operating in high-dpi mode, pixel values are scaled up accordingly. See Adjusting Scale for Higher DPI Screens for additional information.