Testing the ATL DHTML Control

Once you have created your project, you can build and test the sample control. Before you do this, use ClassView and FileView to examine the project. The elements of your project are described in greater detail in Identifying the Elements of the DHTML Control Project.

To build and test the ATL DHTML control

  1. Build the project. From the Build menu, click Rebuild All.

  2. When the build is completed, from the Tools menu, click ActiveX Control Test Container to launch the Test Container application.

  3. In Test Container, from the Edit menu, click Insert New Control.

  4. In the Insert Control dialog box, select your control from the list box. Remember, its name is based on the short name you indicated in the ATL Object Wizard. Click OK.

  5. Examine the control. Note that it has a scroll bar. Use the control's handles to resize the control to activate the scrollbar.

  6. Test the control's buttons. The background color changes to the color indicated by the button.

  7. Close Test Container.

Next, try modifying the DHTML control.

ATL Support for DHTML Controls