Adding an ATL Control

Use this wizard to add a user interface object to a project that supports interfaces for all potential containers. To support these interfaces, the project must have been created as an ATL application or as an MFC application that contains ATL support. You can use the ATL Project Wizard to create an ATL application, or add an ATL object to your MFC application to implement ATL support for an MFC application.

To add an ATL control to your project

  1. In either Solution Explorer or Class View, right-click the name of the project to which you want to add the ATL simple object.

  2. Click Add from the shortcut menu, and then click Add Class.

  3. In the Add Class dialog box, in the templates pane, click ATL Control, and then click Add to display the ATL Control Wizard.

Using the ATL Control Wizard, you can create one of three types of controls:

  • A standard control

  • A composite control

  • A DHTML control

Additionally, you can reduce the size of the control and remove interfaces that are not used by most containers by selecting Minimal control on the Options page of the wizard.

See Also

Reference

Fundamentals of ATL COM Objects

Concepts

Adding Functionality to the Composite Control

ATLFire Sample