Skip to content

Commit 47d7816

Browse files
TylerMSFTTylerMSFT
authored andcommitted
experimenting with indentation
1 parent 9102931 commit 47d7816

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ This wizard differs from the [Add Method](../../ide/adding-a-method-visual-cpp.m
1818
- It's 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.
1919
- It adds the following entries if a Dispatch map is found in the project:
2020

21-
```cpp
22-
BEGIN_DISPATCH_MAP(CMFCApplication2Doc, CDocument)
23-
DISP_FUNCTION_ID(CMFCApplication2Doc, "methodName", dispidmethodName, internalName, VT_EMPTY, VTS_NONE)
24-
END_DISPATCH_MAP()
21+
> ```cpp
22+
BEGIN_DISPATCH_MAP(CMFCApplication2Doc, CDocument)
23+
DISP_FUNCTION_ID(CMFCApplication2Doc, "methodName", dispidmethodName, internalName, VT_EMPTY, VTS_NONE)
24+
END_DISPATCH_MAP()
2525
```
2626
2727
- It generates the following associated method implementation:
2828
29-
```cpp
30-
void CMFCApplication2Doc::internalName()
31-
{
32-
AFX_MANAGE_STATE(AfxGetAppModuleState());
33-
// TODO: Add your dispatch handler code here
34-
}
29+
> ```cpp
30+
void CMFCApplication2Doc::internalName()
31+
{
32+
AFX_MANAGE_STATE(AfxGetAppModuleState());
33+
// TODO: Add your dispatch handler code here
34+
}
3535
```
3636
3737
## Add a method to an interface
@@ -123,15 +123,15 @@ The following section describes the Add IDL MFC Method wizard UI:
123123
124124
- **`id`**
125125
126-
Sets the numeric ID that identifies the method. For more information, see [id](/windows/win32/midl/id) in the [MIDL reference](/windows/win32/midl/midl-language-reference.md).
126+
Sets the numeric ID that identifies the method. For more information, see [`id`](/windows/win32/midl/id) in the [MIDL reference](/windows/win32/midl/midl-language-reference.md).
127127
128128
- **`call_as`**
129129
130-
Specifies the name of the remote method to map to this local method. For more information, see [call_as](/windows/win32/midl/call-as) in the [MIDL reference](/windows/win32/midl/midl-language-reference.md).
130+
Specifies the name of the remote method to map to this local method. For more information, see [`call_as`](/windows/win32/midl/call-as) in the [MIDL reference](/windows/win32/midl/midl-language-reference.md).
131131
132132
- **`helpcontext`**
133133
134-
Specifies a context ID that lets the user view information about this method in the Help file. For more information, see [helpcontext](/windows/win32/Midl/helpcontext) in the [MIDL reference](/windows/win32/midl/midl-language-reference.md).
134+
Specifies a context ID that lets the user view information about this method in the Help file. For more information, see [`helpcontext`](/windows/win32/Midl/helpcontext) in the [MIDL reference](/windows/win32/midl/midl-language-reference.md).
135135
136136
- **`helpstring`**
137137
@@ -140,4 +140,4 @@ The following section describes the Add IDL MFC Method wizard UI:
140140
## See also
141141
142142
[Add method wizard](../../ide/adding-a-method-visual-cpp.md)\
143-
[MFC wizards and dialog boxes](mfc-wizards-and-dialog-boxes)
143+
[MFC wizards and dialog boxes](mfc-wizards-and-dialog-boxes.md)

0 commit comments

Comments
 (0)