Skip to content

Latest commit

 

History

History
57 lines (49 loc) · 2.43 KB

File metadata and controls

57 lines (49 loc) · 2.43 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision ms.author manager translation.priority.ht
ActiveX Control Containers: Manually Enabling ActiveX Control Containment
na
10/14/2016
visual-studio-dev14
na
na
devlang-cpp
na
article
C++
AfxEnableControlContainer method
ActiveX control containers [C++], enabling
ActiveX controls [C++], enabling containers
833bcde9-c9ad-4709-ad12-2fc2150fb6a5
8
mblome
ghogen
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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.

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