You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f5ea927
Browse filesBrowse the repository at this point in the historyBrowse files
# Viewing and Adding ActiveX Controls to a Dialog Box (C++)
9
9
10
10
Visual Studio enables you to insert ActiveX controls into your dialog box.
11
11
12
-
### To see the ActiveX controls you have available
12
+
The **Insert ActiveX Control** dialog box enables you to insert ActiveX controls into your dialog box while using the [Dialog editor](../windows/dialog-editor.md). This dialog contains the following properties:
13
+
14
+
|Property|Description|
15
+
|---|---|
16
+
|**ActiveX Control**|Displays a list of Active X controls. Inserting a control from this dialog box does not generate a wrapper class. If you need a wrapper class, use [Class View](/visualstudio/ide/viewing-the-structure-of-code) to create one (for more information, see [Adding a Class](../ide/adding-a-class-visual-cpp.md)). If an Active X control does not appear in this dialog box, try installing the control according to the vendor's instructions.|
17
+
|**Path**|Displays the file in which the ActiveX control is found.|
18
+
19
+
You can place controls in the **Toolbox** window for easy access. For more information, see [Toolbox](/visualstudio/ide/reference/).
20
+
21
+
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
22
+
23
+
## To see the ActiveX controls you have available
13
24
14
25
1. Open a dialog box in the Dialog editor.
15
26
16
-
2. Rightclick anywhere in the body of the dialog box.
27
+
1. Right-click anywhere in the body of the dialog box.
17
28
18
-
3. On the shortcut menu, click**Insert ActiveX Control**.
29
+
1. On the shortcut menu, select**Insert ActiveX Control**.
19
30
20
-
The [Insert ActiveX Control dialog box](../windows/insert-activex-control-dialog-box.md) appears, showing all the ActiveX controls on your system. At the bottom of the dialog box, the path to the ActiveX Control file appears.
31
+
The **Insert ActiveX Control** dialog box appears, showing all the ActiveX controls on your system. At the bottom of the dialog box, the path to the ActiveX Control file appears.
21
32
22
-
###To add an ActiveX control to a dialog box
33
+
## To add an ActiveX control to a dialog box
23
34
24
-
1. In the [Insert ActiveX Control dialog box](../windows/insert-activex-control-dialog-box.md), select the control you want to add to your dialog box and click**OK**.
35
+
1. In the **Insert ActiveX Control** dialog box, select the control you want to add to your dialog box and select**OK**.
25
36
26
37
The control appears in the dialog box, where you can edit it or create handlers for it just as you would any other control.
27
38
@@ -33,7 +44,20 @@ Visual Studio enables you to insert ActiveX controls into your dialog box.
33
44
34
45
You can place controls in the **Toolbox** window for easy access. For more information, see [Toolbox](/visualstudio/ide/reference/toolbox).
35
46
36
-
For information on adding resources to managed projects, please see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
47
+
## To edit properties for an ActiveX control
48
+
49
+
ActiveX controls supplied by independent vendors may come equipped with their own properties and characteristics. Properties for ActiveX controls are displayed in the **Properties** window. In addition, any property pages created by the writers of the ActiveX control are displayed in the **Properties Pages** dialog box (to view the **Property Page** for a specific ActiveX control, click the **Property Page** button in the [Properties Window](/visualstudio/ide/reference/properties-window)).
50
+
51
+
Various tabs are displayed in the property page for an ActiveX control, depending on the property sheets that come as part of the ActiveX control.
52
+
53
+
> [!NOTE]
54
+
> The following procedure applies to using the property page to edit ActiveX controls. You can also browse and edit ActiveX properties in the new **Properties** window.
55
+
56
+
1. Select the **ActiveX** control.
57
+
58
+
1. On the **View** menu, select **Property Page** and view the properties.
59
+
60
+
1. Make changes as needed in the property page.
37
61
38
62
## Requirements
39
63
@@ -43,4 +67,7 @@ Win32
43
67
44
68
[Controls in Dialog Boxes](../windows/controls-in-dialog-boxes.md)<br/>
0 commit comments