resizeTo method

Sets the size of the application window to the specified values.

Syntax


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

Parameters

x [in]

Type: LONG

A LONG that indicates the new width of the window in pixels.

y [in]

Type: LONG

A LONG that indicates the new height of the window in pixels.

Remarks

The IHTMLOMWindowServices::resizeTo 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::resizeTo 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.
 

 

 

Show: