Skip to content

Commit 4d22756

Browse files
committed
Final Update- See also section
1 parent 336fce2 commit 4d22756

4 files changed

Lines changed: 22 additions & 12 deletions

docs/ide/add-interface-definition-library-property-wizard.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
description: "Learn more about: Use a Microsoft Visual Studio wizard to add an IDL property to an IDL interface in your project"
33
title: "Add an IDL property"
4-
ms.date: 04/11/2022
4+
ms.date: 04/12/2022
55
f1_keywords: ["vc.codewiz.prop.overview", "vc.codewiz.prop.idlattributes"]
66
helpviewer_keywords: ["interfaces, adding properties", "properties [C++], adding to interfaces", "names, add property wizard", "IDL attributes", "stock properties, about stock properties", "stock properties"]
77
ms.custom: devdivchpfy22
88
---
99
# Add an IDL property
1010

11-
The **Add IDL Property** wizard adds a method to an interface defined in an Interface Definition Library (IDL). To use the **Add IDL Property** wizard, your project can't support MFC.
11+
The **Add IDL Property** wizard adds a property to an interface defined in an Interface Definition Library (IDL). To use the **Add IDL Property** wizard, your project can't support MFC.
1212

1313
For example, if you have an ATL project, and it has an `.idl` file in it, use the following procedure to add a property to an interface.
1414

@@ -37,15 +37,15 @@ For ATL interfaces, the `Get` and `Put` functions are added to the `.cpp` and `.
3737

3838
The following section describes the UI that you'll use to add an IDL property:
3939

40-
:::image type="content" source="media/add-interface-definition-library-property-wizard.png" alt-text="Screenshot of adding IDL property to the interface.":::
40+
:::image type="content" source="media/add-interface-definition-library-property-wizard.png" alt-text="Screenshot of Add IDL Property with two parameters: [ in ] int i and [ in ] char c. Return type is HRESULT. Property type is float.":::
4141

4242
- **Property name**
4343

4444
Sets the name of the property.
4545

4646
- **Property type**
4747

48-
Sets whether your property will have a getter, setter, or both.
48+
The data type of the property.
4949

5050
- **Return type**
5151

@@ -120,3 +120,5 @@ Keywords in the Microsoft Interface Definition Language (MIDL) are described in
120120
## **See also**
121121

122122
[Add Property](adding-a-property-visual-cpp.md)
123+
124+
[Add IDL MFC Property](../mfc/reference/add-interface-definition-library-mfc-property-wizard.md)

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
description: "Learn more about: Add a property to an interface in a Microsoft Visual Studio C++ project"
33
title: "Add a property"
4-
ms.date: 04/11/2022
4+
ms.date: 04/12/2022
55
f1_keywords: ["vc.codewiz.prop.overview"]
66
helpviewer_keywords: ["interfaces, adding properties", "properties [C++], adding to interfaces", "names, add property wizard", "add property wizard", "stock properties, about stock properties", "stock properties"]
77
ms.custom: devdivchpfy22
88
---
99

1010
# Add a property
1111

12-
Use the [Add Property wizard](#add-property-wizard) to add a method to an interface in your project.
12+
Use the [Add Property wizard](#add-property-wizard) to add a property to an interface in your project.
1313

1414
**To add a property to your interface:**
1515

16-
1. From the Visual Studio main menu, select **View** > **Class view**. In the [Class View](/visualstudio/ide/viewing-the-structure-of-code) pane, expand the project node to display the interface you want to add the method to.
16+
1. From the Visual Studio main menu, select **View** > **Class view**. In the [Class View](/visualstudio/ide/viewing-the-structure-of-code) pane, expand the project node to display the interface you want to add the property to.
1717

1818
> [!NOTE]
1919
> You can also add properties to dispinterfaces, which, unless the project is attributed, are nested within the library node.
@@ -50,4 +50,10 @@ The following section describes the UI that you'll use to add a property:
5050

5151
Select to add a property setter. By default, the name of the `Set` function is `Set`*PropertyName*. You can edit this name. If you delete the name, the function [`SetNotSupported`](../mfc/reference/colecontrol-class.md#setnotsupported) is inserted into the interface dispatch map. The `Set`*PropertyName* function specifies that the property is writable.
5252

53-
For ATL interfaces **Put function** makes the property writable; that is, it creates the `Put` method for setting, or "putting," this property of the object. Select **Get**, **Put**, or both.
53+
For ATL interfaces **Put function** makes the property writable; that is, it creates the `Put` method for setting, or "putting," this property of the object. Select **Get**, **Put**, or both.
54+
55+
## See Also
56+
57+
[Add IDL Property](add-interface-definition-library-property-wizard.md)
58+
59+
[Add IDL MFC Property](../mfc/reference/add-interface-definition-library-mfc-property-wizard.md)
94 Bytes
Loading

docs/mfc/reference/add-interface-definition-library-mfc-property-wizard.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
description: "Learn more about: Use the Microsoft Visual Studio Add IDL MFC property wizard to add a method to an IDL interface in your MFC or ATL project"
2+
description: "Learn more about: Use the Microsoft Visual Studio Add IDL MFC property wizard to add a property to an IDL interface in your MFC or ATL project"
33
title: "Add an IDL MFC property"
4-
ms.date: "04/11/2022"
4+
ms.date: "04/12/2022"
55
f1_keywords: ["vc.codewiz.prop.overview"]
66
helpviewer_keywords: ["interfaces, adding properties", "properties [C++], adding to interfaces", "names, add property wizard", "add property wizard", "stock properties, about stock properties", "stock properties"]
77
ms.assetid: 37bd4db7-efd3-4faa-87ad-64902ed16a36
@@ -10,7 +10,7 @@ ms.custom: devdivchpfy22
1010

1111
# Add an IDL MFC property
1212

13-
The **Add IDL MFC Property** wizard adds a method to an Interface Definition Library (IDL) interface defined in your Microsoft Framework Class (MFC) project. To use this wizard, you must be in an MFC Project, ActiveX project, or an ATL project that supports MFC. For example, if you have a Microsoft ActiveX control project, you can use the following procedure to add a method to an IDL interface in the solution.
13+
The **Add IDL MFC Property** wizard adds a property to an Interface Definition Library (IDL) interface defined in your Microsoft Framework Class (MFC) project. To use this wizard, you must be in an MFC Project, ActiveX project, or an ATL project that supports MFC. For example, if you have a Microsoft ActiveX control project, you can use the following procedure to add a property to an IDL interface in the solution.
1414

1515
**To add an IDL MFC property to your interface**
1616

@@ -33,7 +33,7 @@ For MFC dispinterfaces, if you select **Member variable** as the implementation
3333

3434
The following section describes the **Add IDL MFC Property** wizard:
3535

36-
:::image type="content" source="../reference/media/add-interface-definition-library-mfc-property-wizard.png" alt-text="Screenshot of IDL MFC Property Wizard.":::
36+
:::image type="content" source="../reference/media/add-interface-definition-library-mfc-property-wizard.png" alt-text="Screenshot of Add IDL MFC Property with two parameters: int i and char c. Property type is OLE_COLOR.":::
3737

3838
- **Property name**
3939

@@ -126,3 +126,5 @@ If you're adding a property to an MFC dispinterface using the **Add IDL MFC Prop
126126
## See Also
127127

128128
[Add Property](../../ide/adding-a-property-visual-cpp.md)
129+
130+
[Add IDL Property](../../ide/add-interface-definition-library-property-wizard.md)

0 commit comments

Comments
 (0)