Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 2.29 KB

activex-control-containers-manually-enabling-activex-control-containment.md

File metadata and controls

33 lines (22 loc) · 2.29 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: ActiveX Control Containers: Manually Enabling ActiveX Control Containment
ActiveX Control Containers: Manually Enabling ActiveX Control Containment
09/12/2018
AfxEnableControlContainer method [MFC]
ActiveX control containers [MFC], enabling
ActiveX controls [MFC], enabling containers
833bcde9-c9ad-4709-ad12-2fc2150fb6a5

ActiveX Control Containers: Manually Enabling ActiveX Control Containment

If you did not enable ActiveX control support when you used the MFC Application Wizard to generate your application, you will have to add this support manually. This article describes the process for manually adding ActiveX control containment to an existing OLE container application. If you know in advance that you want ActiveX control support in your OLE container, see the article Creating an MFC ActiveX Control Container.

Important

ActiveX is a legacy technology that should not be used for new development. For more information about modern technologies that supersede ActiveX, see ActiveX Controls.

Note

This article uses a dialog-based ActiveX control container project named Container and an embedded control named Circ as examples in the procedures and code.

To support ActiveX controls, you must add one line of code to two of your project's files.

After you have completed these steps, rebuild your project by clicking Build on the Build menu.

See also

ActiveX Control Containers