Share via


ActiveX Control Containers: Viewing and Modifying Control Properties

OverviewHow Do ISample

When you insert an ActiveX control into a project, it is useful to view and change the properties supported by the ActiveX control. This article discusses how to use the Visual C++ resource editor to do this.

If your ActiveX control container application uses embedded controls, you can view and modify the control’s properties while in the resource editor. You can also use the resource editor to set property values during design time. The resource editor then automatically saves these values in the project’s resource file. Any instance of the control will then have its properties initialized to these values.

This procedure assumes that you have used Gallery to insert a control into your project. For information, see ActiveX Control Containers: Inserting a Control Into a Control Container Application.

The first step in viewing the control’s properties is to add an instance of the control to the project’s dialog template.

To add a control to the dialog template

  1. In the Project Workspace window, load your ActiveX control container project into the developer environment. For this example, use the Container project.

  2. Click ResourceView in the Project Workspace window.

  3. Open the Dialog folder.

  4. Open your main dialog box template.

  5. On the Controls toolbar, select the control icon.

  6. Click a spot within the dialog box area to insert the control.

Once you have added the control to the dialog box, double-click on the control to bring up the control Properties dialog box. Use this dialog box to modify and test new properties immediately.