ATL Support for DHTML Controls

Using ATL, you can create a control with Dynamic HTML (DHTML) capability. An ATL DHTML control:

  • Hosts the WebBrowser control.

  • Specifies, using HTML, the user interface (UI) of the DHTML control.

  • Accesses the WebBrowser object and its methods through its interface, IWebBrowser2.

  • Manages communication between C++ code and HTML.

A DHTML control is similar to any other ATL control, except the DHTML control includes an additional dispatch interface. See the figure in Identifying the Elements of the DHTML Control Project for an illustration of the interfaces provided in the default DHTML project.

You can view the ATL DHTML control in a Web browser or other container, such as the ActiveX Control Test Container.

In This Section

Identifying the Elements of the DHTML Control Project
Describes the elements of a DHTML control project.

Calling C++ Code from DHTML
Provides an example of calling C++ code from a DHTML control.

Creating an ATL DHTML Control
Lists the steps for creating a DHTML control.

Testing the ATL DHTML Control
Shows how to build and test the initial DHTML control project.

Modifying the ATL DHTML Control
Shows how to add some functionality to the control.

Testing the Altered ATL DHTML Control
Shows how to build and test the control's added functionality.

ATL
Provides links to conceptual topics on how to program using the Active Template Library.