IWebBrowser2IWebBrowser2*
*Contents  *Index  *Topic Contents
*Previous Topic: Interface
*Next Topic: IWebBrowser2::ClientToWindow

IWebBrowser2

IWebBrowser2 designates an interface that allows applications to implement an instance of the WebBrowser control in an application (ActiveX Control) or control an instance of the Internet Explorer application (OLE Automation). For methods applicable to the Internet Explorer object only, the description section in the following table uses the "Internet Explorer only" notation, and throughout the reference sections the "Applies To" heading also indicates which object (WebBrowser or Internet Explorer) that method applies to. The Exdisp.h file defines all the WebBrowser interfaces as well as the GUIDs (globally unique identifiers).

Methods in Vtable Order

IWebBrowser2 methods Description
GoBack Navigates to the previous item in the history list.
GoForward Navigates to the next item in the history list.
GoHome Navigates to the current home or start page.
GoSearch Navigates to the current search page.
Navigate Navigates to a resource identified by a Universal Resource Locator (URL).
Refresh Reloads the current file.
Refresh2 Reloads the current file and optionally prevents the "pragma:nocache" header from being sent.
Stop Stops opening a file.
get_Application Returns an application object representing the application that contains the current instance of the Internet Explorer application.
get_Parent Returns the automation object.
get_Container Returns the container of the WebBrowser control.
get_Document Returns the active document.
get_TopLevelContainer Returns a value indicating whether the current object is the top-level container of the WebBrowser control.
get_Type Returns the type name of the document object.
get_Left Returns the screen coordinate of the left edge of the Internet Explorer main window.
put_Left Sets the horizontal position of the Internet Explorer main window.
get_Top Returns the screen coordinate of the top edge of the Internet Explorer main window.
put_Top Sets the vertical position of the Internet Explorer main window.
get_Width Returns the width of the Internet Explorer main window.
put_Width Sets the width of the Internet Explorer main window.
get_Height Returns the height of the Internet Explorer main window.
put_Height Sets the height of the Internet Explorer main window.
get_LocationName Returns the name of the resource that WebBrowser is currently displaying.
get_LocationURL Returns the URL of the resource that WebBrowser is currently displaying.
get_Busy Returns a value indicating whether a download or other activity is still in progress.
Quit Closes the Internet Explorer application. (Internet Explorer only)
ClientToWindow Converts the client coordinates of a point to window coordinates. (Internet Explorer only)
PutProperty Sets the value of a property associated with the given object. (Internet Explorer only)
GetProperty Retrieves the current value of a property associated with the given object. (Internet Explorer only)
get_Name Returns the name of the object that contains the WebBrowser control used by Internet Explorer. (Internet Explorer only)
get_HWND Returns the window handle to the Internet Explorer main window. (Internet Explorer only)
get_FullName Returns the full path of the file that Internet Explorer is currently displaying. (Internet Explorer only)
get_Path Returns a string that evaluates to the full path of the resource that Internet Explorer is currently displaying. (Internet Explorer only)
get_Visible Returns a value indicating whether the object is visible or hidden.
put_Visible Sets a value indicating whether the object is visible or hidden.
get_StatusBar Returns a value that indicates whether the status bar is visible.
put_StatusBar Sets a value that determines whether the status bar is visible.
get_StatusText Returns the text of the status bar.
put_StatusText Sets the text for the status bar.
get_ToolBar Returns a value that indicates whether the toolbar is visible.
put_ToolBar Sets a value that determines whether the toolbar is visible.
get_MenuBar Returns a value that indicates whether the menu bar is visible.
put_MenuBar Sets a value that determines whether the menu bar is visible.
get_FullScreen Returns a value indicating whether Internet Explorer is in full-screen or normal window mode.
put_FullScreen Sets a value that determines whether Internet Explorer is in full-screen or normal window mode.
Navigate2 Navigates to a resource identified by a pointer to an item identifier list (PIDL).
QueryStatusWB Queries the object for status of commands.
ExecWB Executes a command.
ShowBrowserBar Shows or hides a specified browser bar.
get_ReadyState Returns a standard OLE ReadyState bindable property for the WebBrowser control.
get_Offline Returns a value that determines whether the control is offline.
put_Offline Sets a value that determines whether the control is offline.
get_Silent Returns a value indicating whether any dialog boxes can be shown.
put_Silent Sets a value indicating whether any dialog boxes can be shown.
get_RegisterAsBrowser Returns a value indicating whether the WebBrowser control is registered as a top-level browser for target name resolution.
put_RegisterAsBrowser Sets a value indicating whether the WebBrowser control is registered as a top-level browser for target name resolution.
get_RegisterAsDropTarget Returns a value indicating whether the WebBrowser control is registered as a drop target for navigation.
put_RegisterAsDropTarget Sets a value indicating whether the WebBrowser control is registered as a drop target for navigation.
get_TheaterMode Retrieves a value indicating whether the WebBrowser control is in theater mode.
put_TheaterMode Sets a value indicating whether the WebBrowser control is in theater mode.
get_AddressBar Determines if the Internet Explorer object's address bar is visible.
put_AddressBar Shows or hides the Internet Explorer object's address bar.
get_Resizable Retrieves the Internet Explorer object's resizable property.
put_Resizable Sets the Internet Explorer object's resizable property.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.