SHDocVw.TWebBrowser

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.OleCtrls.TOleControlVcl.Controls.TWinControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTWebBrowser

Delphi

TWebBrowser = class(TOleControl, IDocHostUIHandler, IDocHostShowUI, IOleCommandTarget)

C++

class PASCALIMPLEMENTATION TWebBrowser : public Vcl::Olectrls::TOleControl

Properties

Type Visibility Source Unit Parent
class public
SHDocVw.pas
SHDocVw.hpp
SHDocVw SHDocVw

Description

TWebBrowser provides access to the Web browser functionality of Microsoft's Shell Doc Object and Control Library (SHDOCVW.DLL).

TWebBrowser wraps the IWebBrowser2 interface from Microsoft's Shell Doc Object and Control Library (SHDOCVW.DLL) to allow you to create a customized Web browsing application or to add Internet, file and network browsing, document viewing, and data downloading capabilities to your applications.

TWebBrowser wraps the SHDOCVW.DLL, and for this reason, you must have SHDOCVW.DLL installed in order to use this component. This DLL ships with Internet Explorer 4 and later.

TWebBrowser uses the Internet Explorer component in the run-time environment, and each run-time environment might have a different version of the IE component. By default, TWebBrowser uses IE7 Standards mode even if the run-time environment installed the latest IE (for example, IE11). To control the TWebBrower component's Browser Emulation mode, set the following registry entry:

 HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER) \SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION\<your application name> 

For more details, see http://msdn.microsoft.com/en-us/library/ee330730%28v=vs.85%29.aspx#browser_emulation

See Also