Share via


CHtmlView::OnNewWindow2

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. For more information, see Implementing the IDispatch Interface.

  • 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

CHtmlView Class

Hierarchy Chart

DWebBrowserEvents2::NewWindow2

Other Resources

CHtmlView Members