Creating an MFC ActiveX Control Container
This documentation is archived and is not being maintained.

Creating an MFC ActiveX Control Container

An ActiveX control container is a parent program that supplies the environment for an ActiveX (formerly OLE) control to run. You can create an application capable of containing ActiveX controls with or without MFC, but it is much easier to do with MFC.

Creating an MFC container program using the MFC Application Wizard allows you to access the many features of ActiveX controls and Automation that are implemented by the MFC and ActiveX classes. These features include visual editing, Automation, creating compound files, and support for controls. The MFC Application Wizard visual editing options that your parent program will support include creating a container, a mini-server, a full-server, and a program that is both a container and a server.

  • New MFC Application. To create a new MFC program that includes Automation, visual editing, compound files, or control support, use the MFC Application Wizard and choose the appropriate Automation options.

  • Existing MFC Application. If you are adding control containment to an existing MFC application, see OLE Control Containers: Manually Enabling OLE Control Containment.

To create an ActiveX container for any of the following types of applications

Show:
© 2016 Microsoft