Skip to content

Commit fbdf575

Browse files
committed
Update after review
1 parent edef17e commit fbdf575

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

docs/mfc/reference/add-idl-mfc-method-wizard.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ ms.custom: devdivchpfy22
99

1010
# Add an IDL MFC method
1111

12-
The Add an IDL MFC Method wizard adds a method to an interface defined in an Interface Definition Library (IDL) in a Microsoft Framework Class (MFC) project. To use the IDL MFC method wizard you must be in an MFC Project, ActiveX project or an ATL project that supports MFC.
12+
The **Add IDL MFC Method** wizard adds a method to an interface defined in an Interface Definition Library (IDL) in a Microsoft Framework Class (MFC) project. To use the **Add IDL MFC Method** wizard you must be in an MFC Project, ActiveX project or an ATL project that supports MFC.
1313

14-
If the ATL project doesn't support MFC, only the wizard that adds a method to an IDL interface is available. For example, if you have a Microsoft ActiveX control project, and you open the IDL library, using following procedure you can add the method to interface. If the project contains a class associated with the interface, the wizard modifies the class, too.
14+
If the ATL project doesn't support MFC, only the wizard that adds a method to an IDL interface is available. For example, if you have a Microsoft ActiveX control project, and you open the IDL library, using following procedure you can add the method to interface. If the project contains a class associated with the interface, the wizard will add the method to the class, too.
1515

16-
This wizard differs from the Add method wizard. The [Add method](../../ide/adding-a-method-visual-cpp.md) wizard adds default method to your project. The Add an IDL MFC method wizard is specific to MFC, ActiveX, or ATL projects that support MFC. For ATL projects that don't support MFC, only the Add method wizard is available.
16+
This wizard differs from the **Add Method** wizard. The [Add method](../../ide/adding-a-method-visual-cpp.md) wizard adds a default method to your project. The **Add IDL MFC Method** wizard is specific to MFC, ActiveX, or ATL projects that support MFC. For ATL projects that don't support MFC, only the **Add Method** wizard is available.
1717

18-
Whereas the Add an IDL MFC method wizard adds a method to an IDL interface, this wizard also:
18+
Whereas the **Add IDL MFC Method** wizard adds a method to an IDL interface, this wizard also:
1919

2020
- Adds the following entries if a Dispatch map is found in the project.
2121
```cpp
@@ -24,7 +24,7 @@ BEGIN_DISPATCH_MAP(CMFCApplication2Doc, CDocument)
2424
DISP_FUNCTION_ID(CMFCApplication2Doc, "nombre", dispidnombre, nombrenom, VT_EMPTY, VTS_NONE)
2525
END_DISPATCH_MAP()
2626
```
27-
- Generates following associated method implementations:
27+
- Generates following associated method implementations.
2828
```cpp
2929
void CMFCApplication2Doc::name()
3030
{
@@ -40,27 +40,27 @@ void CMFCApplication2Doc::nombrenom()
4040
}
4141
```
4242

43-
**Add a method to your object**
43+
## Add an IDL MFC method wizard
44+
45+
**Add a method to your interface**
4446

45-
1. On the View menu, choose **Class View**.
47+
1. On the **View** menu, choose **Class View**.
4648

4749
1. In **Class View**, expand the project node to display the interface to which you want to add the method.
4850

4951
1. Right-click the name of the interface.
5052

5153
1. On the shortcut menu, choose **Add**, and then choose **Add Method**.
5254

53-
1. In the **Add Method** wizard, provide the information to create the method.
55+
1. In the **Add IDL MFC Method** wizard, provide the information to create the method.
5456

5557
1. Select **OK** to add the method.
5658

57-
## Add an IDL MFC method wizard
59+
### UI element list
5860

59-
Use this wizard to add an IDL MFC method to an interface.
61+
The following section describes the UI that you'll use to add a method:
6062

61-
:::image type="content" source="../reference/media/add-idl-mfc-method-wizard.png" alt-text="Add an IDL MFC method screenshot.":::
62-
63-
### Names
63+
:::image type="content" source="../reference/media/add-idl-mfc-method-wizard.png" alt-text="Add IDL MFC method screenshot.":::
6464

6565
- **Method name**
6666

@@ -84,7 +84,7 @@ Use this wizard to add an IDL MFC method to an interface.
8484

8585
- **Return type**
8686

87-
The data type returned by the method. Use `HRESULT` interface types because it's the standard way to return error codes.
87+
The data type returned by the method. The standard way to return error codes from methods defined in an interface is with a `HRESULT`.
8888

8989
|Interface type|Description|
9090
|--------------------|-----------------|
@@ -128,8 +128,6 @@ Use this wizard to add an IDL MFC method to an interface.
128128

129129
Displays all of the methods parameters, modifiers, and types. The wizard updates the **Parameters** list as you add parameters.
130130

131-
### Attributes
132-
133131
- `id`
134132

135133
Sets the numeric ID that identifies the method. For more information, see [id](/windows/win32/Midl/id) in the *MIDL Reference*.

0 commit comments

Comments
 (0)