Home | Overview | How Do I | Tutorial | Sample
Before you can access an ActiveX control from an ActiveX control container application, you must use Gallery to add the ActiveX control to the container application.
To add an ActiveX control to the ActiveX control container project
The Components and Controls Gallery appears. By default, you are looking into the Gallery folder.
The Confirm Classes dialog box appears. This dialog box lists the class (or classes) that will be generated for each inserted control. It also lists the class name, header, and implementation files, which can be modified. (In the case of Container and Circ2, only one class is generated.)
An icon representing each control installed appears on the dialog editor Controls toolbar.
Once you complete this procedure, the class generated by Gallery, referred to as a wrapper class, is added to your project. This class is used as an interface between the control container and the embedded control.