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
);
Параметры
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.
Заметки
This event precedes the creation of a new window from within the WebBrowser.
Требования
Header: afxhtml.h