0 out of 2 rated this helpful - Rate this topic

DWebBrowserEvents2::NewWindow2 Event

Fires when a new window is to be created.

Syntax


void NewWindow2(
    IDispatch **ppDisp,
    VARIANT_BOOL *Cancel
);

Parameters

ppDisp
[in, out] An interface pointer that, optionally, receives the IDispatch interface pointer of a new WebBrowser object or InternetExplorer object.
Cancel
[in, out] A VARIANT_BOOL value that determines whether the current navigation should be canceled.
VARIANT_TRUE
Cancel the navigation.
VARIANT_FALSE
Do not cancel the navigation.

Return Value

No return value.

Event DISPID


DISPID_NEWWINDOW2

The DISPID for this event is defined in exdispid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.

Remarks

Microsoft Internet Explorer 6 for Windows XP Service Pack 2 (SP2) or later. NewWindow3 is raised instead of this event. The usage notes for DWebBrowserEvents2::NewWindow3 also apply to this event.

See Also

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ