Click to return to the Reusing Browser Technology home page    
WebBrowser Interfaces     DWebBrowserEvents2::Befor...     WebBrowser Interfaces    
Web Workshop  |  Reusing Browser Technology

DWebBrowserEvents2 Interface


The DWebBrowserEvents2 interface designates an event sink interface that an application must implement in order to receive event notifications from a WebBrowser control or from the Microsoft® Internet Explorer application.

DWebBrowserEvents2 Methods

BeforeNavigate2 Fires before a navigation occurs in the given WebBrowser (on either a window or frameset element).
CommandStateChange Notifies an application that the enabled state of a WebBrowser command has changed.
DocumentComplete Notifies an application that a document has reached the READYSTATE_COMPLETE state.
DownloadBegin Notifies an application that a navigation operation is beginning.
DownloadComplete Occurs when a navigation operation finishes, is halted, or fails.
NavigateComplete2 Fires after a navigation to a hyperlink is completed (on either a window or frameset element).
NewWindow2 Occurs when a new window is to be created for displaying a resource. This event precedes the creation of a new window from within the WebBrowser (for example, in response to a navigation targeted to a new window, or to a scripted window.open method).
OnFullScreen Occurs when the FullScreen property has changed.
OnMenuBar Occurs when the MenuBar property is changed.
OnQuit Notifies an application that the Internet Explorer application is ready to quit.
OnStatusBar Occurs when the StatusBar property is changed.
OnTheaterMode Occurs when the TheaterMode property is changed.
OnToolBar Occurs when the ToolBar property is changed.
OnVisible Occurs when the window for the WebBrowser should be shown/hidden. This allows the host window to behave the same way the Microsoft® Internet Explorer window would.
ProgressChange Notifies an application that the progress of a download operation has been updated.
PropertyChange Notifies an application that the PutProperty method has changed the value of a property.
StatusTextChange Notifies an application that the text of the status bar associated with the WebBrowser control has changed.
TitleChange Notifies an application if the title of a document in the WebBrowser control becomes available or changes.

Interface Information

Implementation Mshtml.dll
Inherits from IDispatch
Header and IDL files Exdisp.h
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.