Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This member function is called by the framework when a new window is to be created for displaying a resource.
virtual void OnNewWindow2(
LPDISPATCH* ppDisp,
BOOL* Cancel
);
Parameters
ppDisp
A pointer to an interface pointer that, optionally, receives the IDispatch interface pointer of a new WebBrowser or Internet Explorer object.Cancel
A pointer to a cancel flag. An application can set this parameter to nonzero to cancel the navigation operation, or to zero to allow it to proceed.
Remarks
This event precedes the creation of a new window from within the WebBrowser.
Requirements
Header: afxhtml.h
See Also
Reference
DWebBrowserEvents2::NewWindow2