|
|
|
IWebBrowser2 Interface |
|
CLSID_InternetExplorer |
{8856F961-340A-11D0-A96B-00C04FD705A2} |
|
CLSID_WebBrowser |
{8856F961-340A-11D0-A96B-00C04FD705A2} |
|
IID_IWebBrowser2 |
{D30C1661-CDAF-11D0-8A3E-00C04FC9E26E} |
|
This interface enables applications to implement an instance of the WebBrowser control (Microsoft ActiveX control) or control an instance of the InternetExplorer application (OLE Automation). Note that not all of the methods listed below are supported by the WebBrowser control.
The IWebBrowser2 interface derives from IDispatch indirectly. IWebBrowser2 derives from IWebBrowserApp, which in turn derives from IWebBrowser, which finally derives from IDispatch.
Note The IWebBrowser and IWebBrowserApp interfaces are deprecated.
|
|
Methods in VTable order |
|
|
IUnknown Methods |
Description |
|
QueryInterface |
Returns pointers to supported interfaces. |
|
AddRef |
Increments reference count. |
|
Release |
Decrements reference count. |
|
IWebBrowser2 Members |
Description |
|
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 URL or to the file identified by a full path. |
|
Refresh |
Reloads the file that is currently displayed in the object. |
|
Refresh2 |
Reloads the file that is currently displayed in the object. Unlike IWebBrowser2::Refresh, this method contains a parameter that specifies the refresh level. |
|
Stop |
Cancels any pending navigation or download operation and stops any dynamic page elements, such as background sounds and animations. |
|
Application |
Retrieves the automation object for an application that is hosting the WebBrowser Control. |
|
Parent |
Retrieves the parent of the object. |
|
Container |
Retrieves an object reference to a container. |
|
Document |
Retrieves the automation object of the active document, if any. |
|
TopLevelContainer |
Retrieves a value that indicates whether the object is a top-level container. |
|
Type |
Retrieves the type name of the contained document objectthat is, Windows HTML Viewer. |
|
Left |
Sets or retrieves the screen coordinate of the left edge of the main window of the object. |
|
Top |
Sets or retrieves the screen coordinate of the top edge of the main window of the object. |
|
Width |
Sets or retrieves the width of the main window for the object. |
|
Height |
Sets or retrieves the height of the Internet Explorer main window. |
|
LocationName |
Retrieves the name of the resource that Internet Explorer is currently displaying. |
|
LocationURL |
Retrieves the URL of the resource that Internet Explorer is currently displaying. |
|
Busy |
Retrieves a BOOL value indicating whether the object is engaged in a navigation or downloading operation. |
|
Quit |
Closes the object. |
|
ClientToWindow |
Converts the client coordinates of a point to window coordinates. |
|
PutProperty |
Sets the value of a property associated with the object. |
|
GetProperty |
Retrieves the value of a property associated with the given object. |
|
Name |
Retrieves the name of the object that contains the WebBrowser Control used by Internet Explorer. |
|
HWND |
Retrieves the handle of the Internet Explorer main window. |
|
FullName |
Retrieves the fully qualified path of the Microsoft Internet Explorer executable file. |
|
Path |
Retrieves the full path to the object. |
|
Visible |
Sets or retrieves a value that indicates whether the object is visible or hidden. |
|
StatusBar |
Sets or retrieves a value that indicates whether the status bar for the object is visible. |
|
StatusText |
Sets or retrieves the text in the status bar for the object. |
|
Toolbar |
Sets or retrieves a value that indicates whether the toolbar for the object is visible. |
|
MenuBar |
Sets or retrieves a VARIANT_BOOL value that indicates whether the Internet Explorer menu bar is visible. |
|
FullScreen |
Sets or retrieves a VARIANT_BOOL value that indicates whether Internet Explorer is in full-screen or normal window mode. |
|
Navigate2 |
Navigates the browser to a location that might 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. |
|
QueryStatusWB |
Queries the OLE object for the status of commands using the IOleCommandTarget::QueryStatus method. |
|
ExecWB |
Executes a command on an OLE object and returns the status of the command execution using the IOleCommandTarget interface. |
|
ShowBrowserBar |
Shows or hides a specified browser bar. |
|
ReadyState |
Retrieves the ready state of the object. |
|
Offline |
Sets or retrieves a VARIANT_BOOL value that indicates whether the object is currently operating in offline mode. |
|
Silent |
Sets or retrieves a value that indicates whether the object can show dialog boxes. |
|
RegisterAsBrowser |
Sets or retrieves a value that indicates whether the object is registered as a top-level browser for target name resolution. |
|
RegisterAsDropTarget |
Sets or retrieves a value that indicates whether the object is registered as a drop target for navigation. |
|
TheaterMode |
Sets or retrieves a value that indicates whether the object is in theater mode. |
|
AddressBar |
Sets or retrieves whether the address bar of the object is visible or hidden. |
|
Resizable |
Sets or retrieves a value that indicates whether the object can be resized. |
|
GoBack |
|
FUNCTION
IWebBrowser2_GoBack ( _ |
|
GoForward |
|
FUNCTION
IWebBrowser2_GoForward ( _ |
|
GoHome |
|
FUNCTION
IWebBrowser2_GoHome ( _ |
|
GoSearch |
|
FUNCTION
IWebBrowser2_GoSearch ( _ |
|
Navigate |
|
FUNCTION
IWebBrowser2_Navigate ( _ |
|
Refresh |
|
FUNCTION
IWebBrowser2_Refresh ( _ |
|
Refresh2 |
|
FUNCTION
IWebBrowser2_Refresh2 ( _ |
|
Stop |
|
FUNCTION
IWebBrowser2_Stop ( _ |
|
Application |
|
FUNCTION
IWebBrowser2_get_Application ( _ |
|
Parent |
|
FUNCTION
IWebBrowser2_get_Parent ( _ |
|
Container |
|
FUNCTION
IWebBrowser2_get_Container ( _ |
|
Document |
|
FUNCTION
IWebBrowser2_get_Document ( _ |
|
TopLevelContainer |
|
FUNCTION
IWebBrowser2_get_TopLevelContainer ( _ |
|
Type |
|
FUNCTION
IWebBrowser2_get_Type ( _ |
|
Left |
|
FUNCTION
IWebBrowser2_get_Left ( _
FUNCTION
IWebBrowser2_put_Left ( _ |
|
Top |
|
FUNCTION
IWebBrowser2_get_Top ( _
FUNCTION
IWebBrowser2_put_Top ( _ |
|
Width |
|
FUNCTION
IWebBrowser2_get_Width ( _
FUNCTION
IWebBrowser2_put_Width ( _ |
|
Height |
|
FUNCTION
IWebBrowser2_get_Height ( _
FUNCTION
IWebBrowser2_put_Height ( _ |
|
LocationName |
|
FUNCTION
IWebBrowser2_get_LocationName ( _ |
|
LocationURL |
|
FUNCTION
IWebBrowser2_get_LocationURL ( _ |
|
Busy |
|
FUNCTION
IWebBrowser2_get_Busy ( _ |
|
Quit |
|
FUNCTION
IWebBrowser2_Quit ( _ |
|
ClientToWindow |
|
FUNCTION
IWebBrowser2_ClientToWindow ( _ |
|
PutProperty |
|
FUNCTION
IWebBrowser2_PutProperty ( _ |
|
GetProperty |
|
FUNCTION
IWebBrowser2_GetProperty ( _ |
|
Name |
|
FUNCTION
IWebBrowser2_get_Name ( _ |
|
HWND |
|
FUNCTION
IWebBrowser2_get_HWND ( _ |
|
FullName |
|
FUNCTION
IWebBrowser2_get_FullName ( _ |
|
Path |
|
FUNCTION
IWebBrowser2_get_Path ( _ |
|
Visible |
|
FUNCTION
IWebBrowser2_get_Visible ( _
FUNCTION
IWebBrowser2_put_Visible ( _ |
|
StatusBar |
|
FUNCTION
IWebBrowser2_get_StatusBar ( _
FUNCTION
IWebBrowser2_put_StatusBar ( _ |
|
StatusText |
|
FUNCTION
IWebBrowser2_get_StatusText ( _
FUNCTION
IWebBrowser2_put_StatusText ( _ |
|
Toolbar |
|
FUNCTION
IWebBrowser2_get_ToolBar ( _
FUNCTION
IWebBrowser2_put_ToolBar ( _ |
|
MenuBar |
|
FUNCTION
IWebBrowser2_get_MenuBar ( _
FUNCTION
IWebBrowser2_put_MenuBar ( _ |
|
FullScreen |
|
FUNCTION
IWebBrowser2_get_FullScreen ( _
FUNCTION
IWebBrowser2_put_FullScreen ( _ |
|
Navigate2 |
|
FUNCTION
IWebBrowser2_Navigate2 ( _ |
|
QueryStatusWB |
|
FUNCTION
IWebBrowser2_QueryStatusWB ( _ |
|
ExecWB |
|
FUNCTION
IWebBrowser2_ExecWB ( _ |
|
ShowBrowserBar |
|
FUNCTION
IWebBrowser2_ShowBrowserBar ( _ |
|
ReadyState |
|
FUNCTION
IWebBrowser2_get_ReadyState ( _ |
|
Offline |
|
FUNCTION
IWebBrowser2_get_Offline ( _
FUNCTION
IWebBrowser2_put_Offline ( _ |
|
Silent |
|
FUNCTION
IWebBrowser2_get_Silent ( _
FUNCTION
IWebBrowser2_put_Silent ( _ |
|
RegisterAsBrowser |
|
FUNCTION
IWebBrowser2_get_RegisterAsBrowser ( _
FUNCTION
IWebBrowser2_put_RegisterAsBrowser ( _ |
|
RegisterAsDropTarget |
|
FUNCTION
IWebBrowser2_get_RegisterAsDropTarget ( _
FUNCTION
IWebBrowser2_put_RegisterAsDropTarget ( _ |
|
TheaterMode |
|
FUNCTION
IWebBrowser2_get_TheaterMode ( _
FUNCTION
IWebBrowser2_put_TheaterMode ( _ |
|
AddressBar |
|
FUNCTION
IWebBrowser2_get_AddressBar ( _
FUNCTION
IWebBrowser2_put_AddressBar ( _ |
|
Resizable |
|
FUNCTION
IWebBrowser2_get_Resizable ( _
FUNCTION
IWebBrowser2_put_Resizable ( _ |
Page last updated on Wednesday, 15 February 2006 22:23:58 +0100