Compartir a través de


Creating an MFC ActiveX Control Container

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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

  1. Containers

  2. Visual editing

  3. MFC ActiveX controls

See Also

Visual C++ Project Types