Skip to content

Commit d124e97

Browse files
authored
Merge pull request #4198 from rachana-satao/RAS-add-property-1921541-1
Updating - Add property wizard for VS2022
2 parents e7edbd7 + eb41540 commit d124e97

9 files changed

+30
-159
lines changed

docs/ide/adding-a-property-visual-cpp.md

Lines changed: 23 additions & 152 deletions
Large diffs are not rendered by default.

docs/ide/adding-functionality-with-code-wizards-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ There are three locations where you can access C++ code wizards:
6464
|-----------------------------|-----------------|
6565
|Add New Item|The Add New Item code wizards add source files to your project. If necessary, additional directories are created to contain the files where the project build engine expects to find them. Code wizards available from the Add Item icon include:<br /><br />- Add C++ source files (.cpp, .h, .idl, .rc, .srf, .def, .rgs).<br />- Add Web development files (.html, .asp, .css, .xml).<br />- Add utility and resource files (.bmp, .cur, .ico, .rct, .sql, .txt).<br /><br />These code wizards generally do not ask you for any information but add a file to your development tree. You may rename the file in the property window.|
6666
|Solution Explorer|The code wizards available from Solution Explorer depend on where your cursor focus is when you right-click an item. If the **Add** option does not appear when you right-click an item, then move your cursor up one level in the development tree and try again. The code wizards will always place the additional code in the appropriate place in the development tree, no matter where your cursor is. Code wizards available from Solution Explorer include:<br /><br />- Add Class (opens the **Add Class** dialog box containing the new code wizards).<br />- Add Resource (New, Import, or Custom).<br />- Add Web Reference.|
67-
|Class View|The code wizards available from Class View depend on where your cursor focus is when you right click an item. If the **Add** option does not appear when you right click an item, then move your cursor up one level in the class tree and try again. The code wizards will always place the additional code in the appropriate place in the development tree, no matter where your cursor is. Code wizards available from Class View include:<br /><br />- [Add Member Function](../ide/adding-a-member-function-visual-cpp.md).<br />- [Add Member Variable](../ide/adding-a-member-variable-visual-cpp.md).<br />- [Add Class](../ide/adding-a-class-visual-cpp.md).<br />- [Implement Interface](./implementing-an-interface-visual-cpp.md#implement-interface-wizard) (from a control class only)<br />- [Add Connection Point](./implementing-a-connection-point-visual-cpp.md#implement-connection-point-wizard) (ATL class only)<br />- [Add Method](./adding-a-method-visual-cpp.md) (from an interface only)<br />- [Add Property](./adding-a-property-visual-cpp.md#names-add-property-wizard) (from an interface only)<br />- [Add Event](./adding-an-event-visual-cpp.md#add-event-wizard) (from a control class only)<br /><br />The Add Class selection opens the **Add Class** dialog box, which gives you access to all the new Add Class code wizards.|
67+
|Class View|The code wizards available from Class View depend on where your cursor focus is when you right click an item. If the **Add** option does not appear when you right click an item, then move your cursor up one level in the class tree and try again. The code wizards will always place the additional code in the appropriate place in the development tree, no matter where your cursor is. Code wizards available from Class View include:<br /><br />- [Add Member Function](../ide/adding-a-member-function-visual-cpp.md).<br />- [Add Member Variable](../ide/adding-a-member-variable-visual-cpp.md).<br />- [Add Class](../ide/adding-a-class-visual-cpp.md).<br />- [Implement Interface](./implementing-an-interface-visual-cpp.md#implement-interface-wizard) (from a control class only)<br />- [Add Connection Point](./implementing-a-connection-point-visual-cpp.md#implement-connection-point-wizard) (ATL class only)<br />- [Add Method](./adding-a-method-visual-cpp.md) (from an interface only)<br />- [Add Property](./adding-a-property-visual-cpp.md) (from an interface only)<br />- [Add Event](./adding-an-event-visual-cpp.md#add-event-wizard) (from a control class only)<br /><br />The Add Class selection opens the **Add Class** dialog box, which gives you access to all the new Add Class code wizards.|
6868
6969
## See also
7070

docs/ide/creating-a-com-interface-visual-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The following three wizards help you customize existing interfaces. They're avai
7373

7474
|Wizard|Project type|
7575
|------------|------------------|
76-
|[Add property wizard](./adding-a-property-visual-cpp.md#names-add-property-wizard)|ATL or MFC projects supporting ATL. Right-click the interface to which you want to add the property.<br /><br />Visual C++ detects the project type and modifies the options in the Add Property Wizard as necessary:<br /><br />- For dispinterfaces in projects created by using the [MFC application wizard](../mfc/reference/mfc-application-wizard.md), invoking the Add Property Wizard provides options specific to MFC.<br />- For MFC ActiveX control interfaces, the Add Property Wizard provides a list of stock methods and properties that you can use as provided or customize for your control.<br />- For all other interfaces, the Add Property Wizards provide options useful in most situations.|
76+
|[Add property wizard](./adding-a-property-visual-cpp.md)|ATL or MFC projects supporting ATL. Right-click the interface to which you want to add the property.<br /><br />Visual C++ detects the project type and modifies the options in the Add Property Wizard as necessary:<br /><br />- For dispinterfaces in projects created by using the [MFC application wizard](../mfc/reference/mfc-application-wizard.md), invoking the Add Property Wizard provides options specific to MFC.<br />- For MFC ActiveX control interfaces, the Add Property Wizard provides a list of stock methods and properties that you can use as provided or customize for your control.<br />- For all other interfaces, the Add Property Wizards provide options useful in most situations.|
7777
|[Add method wizard](./adding-a-method-visual-cpp.md)|ATL or MFC projects supporting ATL. Right-click the interface to which you want to add the method.<br /><br />Visual C++ detects the project type and modifies the options in the Add Method Wizard as necessary:<br /><br />- For dispinterfaces in projects created by using the [MFC application wizard](../mfc/reference/mfc-application-wizard.md), using the Add Method Wizard provides options specific to MFC.<br />- For MFC ActiveX control interfaces, the Add Method Wizard provides a list of stock methods and properties that you can use as provided or customize for your control.<br />- For all other interfaces, the **Add Method** wizards provide options useful in most situations.|
7878

7979
Additionally, you can implement new interfaces on your COM control. Just right-click the object's control class in Class View and choose [Implement Interface](./implementing-an-interface-visual-cpp.md#implement-interface-wizard).
14.4 KB
Loading

docs/mfc/mfc-activex-controls-adding-custom-properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This same procedure can also be used to add other custom properties you want. Su
4949

5050
1. From the shortcut menu, click **Add** and then click **Add Property**.
5151

52-
This opens the [Add Property Wizard](../ide/adding-a-property-visual-cpp.md#names-add-property-wizard).
52+
This opens the [Add Property Wizard](../ide/adding-a-property-visual-cpp.md#add-property-wizard).
5353

5454
1. In the **Property Name** box, type *CircleOffset*.
5555

docs/mfc/mfc-activex-controls-adding-stock-properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Adding stock properties requires less code than adding custom properties because
3838

3939
1. From the shortcut menu, click **Add** and then click **Add Property**.
4040

41-
This opens the [Add Property Wizard](../ide/adding-a-property-visual-cpp.md#names-add-property-wizard).
41+
This opens the [Add Property Wizard](../ide/adding-a-property-visual-cpp.md#add-property-wizard).
4242

4343
1. In the **Property Name** box, click **Caption**.
4444

docs/mfc/mfc-activex-controls-advanced-property-implementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The Add Property Wizard provides a quick and easy method to implement read-only
3030

3131
1. From the shortcut menu, click **Add** and then click **Add Property**.
3232

33-
This opens the [Add Property Wizard](../ide/adding-a-property-visual-cpp.md#names-add-property-wizard).
33+
This opens the [Add Property Wizard](../ide/adding-a-property-visual-cpp.md#add-property-wizard).
3434

3535
1. In the **Property Name** box, type the name of your property.
3636

docs/mfc/mfc-activex-controls-using-fonts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Stock Font properties are preimplemented by the class [COleControl](reference/co
2222

2323
Access the font object through the [GetFont](reference/colecontrol-class.md#getfont), [SetFont](reference/colecontrol-class.md#setfont), and [InternalGetFont](reference/colecontrol-class.md#internalgetfont) functions of `COleControl`. The control user will access the font object via the `GetFont` and `SetFont` functions in the same manner as any other Get/Set property. When access to the font object is required from within a control, use the `InternalGetFont` function.
2424

25-
As discussed in [MFC ActiveX Controls: Properties](mfc-activex-controls-properties.md), adding stock properties is easy with the [Add Property Wizard](../ide/adding-a-property-visual-cpp.md#names-add-property-wizard). You choose the Font property, and the Add Property Wizard automatically inserts the stock Font entry into the control's dispatch map.
25+
As discussed in [MFC ActiveX Controls: Properties](mfc-activex-controls-properties.md), adding stock properties is easy with the [Add Property Wizard](../ide/adding-a-property-visual-cpp.md#add-property-wizard). You choose the Font property, and the Add Property Wizard automatically inserts the stock Font entry into the control's dispatch map.
2626

2727
#### To add the stock Font property using the Add Property Wizard
2828

docs/mfc/reference/creating-an-mfc-activex-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The easiest way to create an MFC ActiveX control is to use the [MFC ActiveX Cont
2828

2929
After you have created your project, you can view the files created in **Solution Explorer**. For more information about the files the wizard creates for your project, see the project-generated file ReadMe.txt. For more information about the file types, see [File Types Created for Visual Studio C++ projects](../../build/reference/file-types-created-for-visual-cpp-projects.md).
3030

31-
After you have created your project, you can use the code wizards to add [functions](../../ide/adding-a-member-function-visual-cpp.md#add-member-function-wizard), [variables](../../ide/adding-a-member-variable-visual-cpp.md#add-member-variable-wizard), [events](../../ide/adding-an-event-visual-cpp.md#add-event-wizard), [properties](../../ide/adding-a-property-visual-cpp.md#names-add-property-wizard), and [methods](../../ide/adding-a-method-visual-cpp.md). For more information about customizing your ActiveX control, see [MFC ActiveX Controls](../../mfc/mfc-activex-controls.md).
31+
After you have created your project, you can use the code wizards to add [functions](../../ide/adding-a-member-function-visual-cpp.md#add-member-function-wizard), [variables](../../ide/adding-a-member-variable-visual-cpp.md#add-member-variable-wizard), [events](../../ide/adding-an-event-visual-cpp.md#add-event-wizard), [properties](../../ide/adding-a-property-visual-cpp.md), and [methods](../../ide/adding-a-method-visual-cpp.md). For more information about customizing your ActiveX control, see [MFC ActiveX Controls](../../mfc/mfc-activex-controls.md).
3232

3333
## See also
3434

0 commit comments

Comments
 (0)