Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.43 KB

inserting-a-control-into-a-control-container-application.md

File metadata and controls

20 lines (14 loc) · 1.43 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: ActiveX Control Containers: Inserting a Control into a Control Container Application
ActiveX Control Containers: Inserting a Control into a Control Container Application
11/04/2016
ActiveX control containers [MFC], inserting controls
ActiveX controls [MFC], adding to projects
bbb617ff-872f-43d8-b4d6-c49adb16b148

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