Share via


_DPIEWebBrowserEvents2::NewWindow2

The NewWindow2 event method fires when a new window is to be created.

Note   This event method is not supported for Windows Mobile-based Smartphones and Pocket PCs.

Syntax

void NewWindow2(
  IDispatch ** ppdisp,
  VARIANT_BOOL * pvbCancel
);

Parameters

  • ppdisp
    [out] Reference to the new window.
  • pvbCancel
    [out] Reference to a Boolean value; VARIANT_TRUE if the new window is created and VARIANT_FALSE if the window is not created.

Return Values

None.

Remarks

The event method fires in response to an action or occurrence that creates a new window, such as the following:

  • User clicks a link while pressing the SHIFT key.
  • User right-clicks a link and selects Open In New Window.
  • There is a targeted navigation to a frame name that does not yet exist.

Requirements

Pocket PC: Not supported
OS Versions: Windows CE 4.0 and later
Header: webvw.h
Library: webvw.lib

See Also

_DPIEWebBrowserEvents2

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.