Condividi tramite


ActiveX Control Containers: Viewing and Modifying Control Properties

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 inserted 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 view the properties of a control

  1. In Resource View, open the Dialog folder.

  2. Open your main dialog box template.

  3. Insert an ActiveX control using the Insert ActiveX Control dialog box. For more information, see Viewing and Adding ActiveX Controls to a Dialog Box.

  4. Select the ActiveX control in the dialog box.

  5. From the Properties window, click the Properties button.

Use the Properties dialog box to modify and test new properties immediately.

See Also

Concepts

ActiveX Control Containers