Skip to content

Latest commit

 

History

History
46 lines (42 loc) · 1.76 KB

File metadata and controls

46 lines (42 loc) · 1.76 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: Inserting a Control into a Control Container Application
na
10/14/2016
visual-studio-dev14
na
na
devlang-cpp
na
article
C++
ActiveX control containers [C++], inserting controls
ActiveX controls [C++], adding to projects
bbb617ff-872f-43d8-b4d6-c49adb16b148
7
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: Inserting a Control into a Control Container Application

Before you can access an ActiveX control from an ActiveX control container application, you must add the ActiveX control to the container application using the Insert ActiveX Control dialog box.

To add an ActiveX control to the ActiveX control container project, see Viewing and Adding ActiveX Controls to a Dialog Box.

Once you add the control, you need to add a member variable (of the ActiveX control type) to the dialog box class. For more information on this procedure, see Adding a Member Variable.

Once you have added the member variable a class, referred to as a wrapper class, is automatically generated and added to your project. This class is used as an interface between the control container and the embedded control.

See Also

ActiveX Control Containers