moveTo method

Moves the screen position of the upper-left corner of the application window to the specified coordinates.

Syntax


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

Parameters

x [in]

Type: LONG

A LONG that indicates the horizontal coordinate in pixels.

y [in]

Type: LONG

A LONG that indicates the vertical coordinate in pixels.

Remarks

The IHTMLOMWindowServices::moveTo 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::moveTo call from script and moves 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: