Microsoft SDK for Java

IWebBrowser2 Interface Methods

The IWebBrowser2 interface has the following methods:

ClientToWindow converts the client coordinates of a point to window coordinates.

ExecWB implements a wrapper that allows you to execute a command on an OLE object using the IOleCommandTarget::Exec method.

getAddressBar retrieves a Boolean value that indicates whether the Microsoft® Internet Explorer object's address bar is visible.

getApplication retrieves the Automation interface supported by the Microsoft® Internet Explorer application.

getBusy retrieves a Boolean value that indicates whether Microsoft® Internet Explorer is engaged in a downloading operation or other activity.

getContainer retrieves a pointer to the IDispatch interface of the container.

getDocument retrieves a pointer to the IDispatch interface of the Active Document object.

getFullName retrieves the fully qualified path of the Microsoft® Internet Explorer executable file.

getFullScreen retrieves a Boolean value that indicates whether Microsoft® Internet Explorer is in full-screen or normal window mode.

getHeight retrieves the height of the Microsoft® Internet Explorer main window.

getHWND retrieves the handle to the Microsoft® Internet Explorer main window.

getLeft retrieves the screen coordinate of the left edge of the Microsoft® Internet Explorer main window.

getLocationName retrieves the name of the resource that Microsoft® Internet Explorer is currently displaying.

getLocationURL retrieves the URL of the resource that Microsoft® Internet Explorer is currently displaying.

getMenuBar retrieves a Boolean value that indicates whether the Microsoft® Internet Explorer menu bar is visible.

getName retrieves the name of the object that contains the WebBrowser control used by Microsoft® Internet Explorer.

getOffline retrieves a Boolean value indicating whether the WebBrowser control is currently operating in offline mode.

getParent retrieves a pointer to the IDispatch interface of the object that is the container of the WebBrowser control.

getPath retrieves the full path of the Microsoft® Internet Explorer application.

GetProperty retrieves the value of a property associated with the given object.

getReadyState retrieves the ready state of the object.

getRegisterAsBrowser retrieves a Boolean value indicating whether the WebBrowser control is registered as a top-level browser for target name resolution.

getRegisterAsDropTarget retrieves a Boolean value indicating whether the WebBrowser control is registered as a drop target for navigation.

getResizable retrieves the InternetExplorer object's resizable property.

getSilent retrieves a Boolean value indicating whether any dialog boxes can be shown.

getStatusBar retrieves a Boolean value that indicates whether the Microsoft® Internet Explorer status bar is visible.

getStatusText retrieves the text of the Microsoft® Internet Explorer status bar.

getTheaterMode retrieves a value indicating whether the WebBrowser control is in theater mode.

getToolBar retrieves a value that indicates whether the Microsoft® Internet Explorer toolbar is visible.

getTop retrieves the screen coordinate of the top edge of the Microsoft® Internet Explorer main window.

getTopLevelContainer retrieves a Boolean value that indicates whether Microsoft® Internet Explorer is the top-level container of the WebBrowser control.

getType retrieves the type name of the contained document object.

getVisible retrieves a Boolean value that indicates whether the object is visible or hidden.

getWidth retrieves the width of the Microsoft® Internet Explorer main window.

GoBack navigates backward one item in the history list.

GoForward navigates forward one 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 Uniform Resource Locator (URL) or to the file identified by a full path.

Navigate2 navigates the browser to a location that may not be able to be expressed as a URL, such as a pointer to an item identifier list (PIDL) for an entity in the Microsoft® Windows® shell namespace.

PutProperty sets the value of a property associated with the given object.

QueryStatusWB implements a wrapper that allows you to query an OLE object for the status of commands using the IOleCommandTarget::QueryStatus method.

Quit closes the Microsoft® Internet Explorer application.

Refresh reloads the file that Microsoft® Internet Explorer is currently displaying.

Refresh2 reloads the file that Microsoft® Internet Explorer is currently displaying. Unlike IWebBrowser2.Refresh, this method contains a parameter that specifies the refresh level.

setAddressBar shows or hides the Microsoft® Internet Explorer object's address bar.

setFullScreen sets Microsoft® Internet Explorer to either full-screen or normal window mode.

setHeight sets the height of the Microsoft® Internet Explorer main window.

setLeft sets the horizontal position of the Microsoft® Internet Explorer main window.

setMenuBar shows or hides the Microsoft® Internet Explorer menu bar.

setOffline sets a value indicating whether the WebBrowser control is currently operating in offline mode. In offline mode, the browser is forced to read HTML pages from the local cache rather than from the source document.

setRegisterAsBrowser sets a value indicating whether the WebBrowser control is registered as a top-level browser for target name resolution.

setRegisterAsDropTarget sets a value indicating whether the WebBrowser control is registered as a drop target for navigation.

setResizable sets the Microsoft® Internet Explorer object's resizable property.

setSilent sets a value indicating whether any dialog boxes can be shown.

setStatusBar shows or hides the Microsoft® Internet Explorer status bar.

setStatusText sets the text of the Microsoft® Internet Explorer status bar.

setTheaterMode sets the TheaterMode property for the WebBrowser control.

setToolBar shows or hides the Microsoft® Internet Explorer toolbar.

setTop sets the vertical position of the Microsoft® Internet Explorer main window.

setVisible sets the visibility state of the object.

setWidth sets the width of the Microsoft® Internet Explorer main window.

ShowBrowserBar shows or hides a specified browser bar.

Stop cancels any pending navigation or download operation and stops any dynamic page elements, such as background sounds and animations.

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