Inserting a Composite Control

Another helpful wizard (ATL Object Wizard) provided by Visual C++ allows you to quickly insert an ATL object into your existing project. Access this wizard by choosing the New ATL Object option from the Insert menu or the ATL Object Wizard button from the ATL toolbar.

Once the ATL Object Wizard appears, choose the Controls option (in the left-hand pane) and then double-click the Composite Control item. At this point, you need to supply some information on the properties of the composite control you are inserting. For complete details on using the ATL Object Wizard, see Adding Objects and Controls.

Once you have made your selections, click OK. The ATL Object Wizard then creates the necessary parts which implement your composite control. These parts include: