show method

[This documentation is preliminary and is subject to change.]

Displays a pop-up window on the screen.

This method is not supported for Metro style apps using JavaScript.

Syntax

HRESULT retVal = object.show(x, y, w, h, pElement);

Standards information

There are no standards that apply here.

Parameters

  • x [in]
    Type: long

    Long integer that specifies the x-coordinate of the pop-up window, in pixels.

  • y [in]
    Type: long

    Long integer that specifies the y-coordinate of the pop-up window, in pixels.

  • w [in]
    Type: long

    Long integer that specifies the width of the pop-up window, in pixels.

  • h [in]
    Type: long

    Long integer that specifies the height of the pop-up window, in pixels.

  • pElement [in, optional]
    Type: VARIANT

    Pointer to a VARIANT that specifies the element to which the x andy coordinates are relative. If none is given, the x and y coordinates are relative to the desktop, where (0,0) is the upper left corner.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

A popup object is set to the same zoom level as the parent window.

Windows Internet Explorer 8. Pop-up windows zoom by default; this behavior cannot be changed. This only applies to pop-up windows created with IHTMLWindow4::createPopup.

See also

Reference

IHTMLWindow4::createPopup

IHTMLPopup::hide

IHTMLPopup::document

IHTMLPopup::isOpen

Conceptual

Using the Popup Object

 

 

Build date: 6/12/2012