Skip to content

Commit 04bed63

Browse files
Taojunshenalexbuckgitdenrea3836425+corob-msft@users.noreply.i.8713187.xyzLJSpiller
authored
4/1/2022 AM Publish (#4200)
* Set ms.topic: faq where YamlMime:FAQ (MicrosoftDocs#4099) * Release notes and conformance for 17.1 * typo fix * Use ConcRT instead of ConCRT ConcRT is a more correct abbreviation for Concurrency Runtime Library. ConcRT also appears in the comment in the beginning of concrt.h. * cpp-docs 3590 in progress * US1907300 - add md code escapes to code elements - PR12 (MicrosoftDocs#4103) * US1907300 - add md code escapes to code elements - PR12 * changes afteer review * changes afteer review * changes afteer review * changes afteer review * Bulk fix: \&MicrosoftDocs#124; entity removal 1/n * Bulk fix: pipe entity removal 2 of n * clarify operators * Bulk fix: Pipe entity 3 of n * Fix grammar * Bulk fix pipe entities 4 of n * Bulk fix * Undo change * Fix pipe entities 5 of n * Fix more pipe entity issues * US1907300 - add md code escapes to code elements - PR13 (MicrosoftDocs#4110) * US1907300 - add md code escapes to code elements - PR13 * changes afteer review * changes after review * Add missing Properties and F1 targets * Tweak dates, Acrolinx * Fix links * US1907300 - add md code escapes to code elements - PR14 * changes after review * US1907300 - add md code escapes to code elements - PR15 * US1907300 - add md code escapes to code elements - PR15 * Add C7553, C5240, diagnostics fixes * Add C5054, C5055, C5056 warnings * fix link * updates after review * Fix a collection of cpp-docs issues * Add C7553, C5240 to TOC * Add C5054, C5055, C5056 to TOC * Tweaks to cpp-docs-220222 * changes after review * Document lowercase, uppercase. Add specific version information * US1907300 - add md code escapes to code elements - PR16 (#4127) * US1907300 - add md code escapes to code elements - PR16 * US1907300 - add md code escapes to code elements - PR16 * changes after review * Add missing documentation to 3 new enum related checks. * Add version inforation into table (#4132) * Fix typo that listed for_each instead of find_if Fixed an example description where the description did not match the example * Add that "g" has been deprecated * US1907300 - add md code escapes to code elements - PR17 (MicrosoftDocs#4130) * US1907300 - add md code escapes to code elements - PR17 * changes after review * changes after review * changes after review * changes after review * changes after review * Change P1689R3 to P1689R4 per Gaby * US1907300 - add md code escapes to code elements - PR18 (MicrosoftDocs#4135) * US1907300 - add md code escapes to code elements - PR18 * changes after review * Update to Docs style. * Fix typo. * Fix missing ending underscore in `_Analysis_assume_` * Fix link. * TC1652913 __declspec(empty_bases) docs * Missed one reference. * Fix typo in _CrtSetReportHook2 parameter name * Add info for TC1587815 JMC in code coverage * Fix typo * US1907300 - add md code escapes to code elements - PR19 (#4141) * US1907300 - add md code escapes to code elements - PR19 * changes after review * Use main branch for public repository * Address bug TS1430759 * update headings * Fix a bunch of "See x for more information" * Bulk Fix 2 of n "see x for more information" * Acrolinx some files before a bulk fix. * Fix remaining "See x" issues in build (#4153) * Fix Acrolinx and grammar issues * Fix typo. * correct previous updates to null * US1907300 - add md code escapes to code elements - PR20 (#4145) * US1907300 - add md code escapes to code elements - PR20 * changes after review * changes after review * changes after review * US1907300 - add md code escapes to code elements - PR21 (#4158) * US1907300 - add md code escapes to code elements - PR21 * changes after review * Update 1 for VS22 (#4147) * Update 1 for VS22 * Disambiguate example, update grammar * Update after review * Update after review * update after review * update after review * update after review * update after review * update after review Co-authored-by: Colin Robertson <[email protected]> * restored link to videos previously on channel 9 but now on docs.micro… (#4159) * restored link to videos previously on channel 9 but now on docs.microsoft.com shows page * acrolinx * make link relative Co-authored-by: TylerMSFT <[email protected]> * US1907300 - add md code escapes to code elements - PR22 * changes after review * changes after review * Missing 9 for hexadecimal-digit * Missing " in string-literal * Updating for VS22 (MicrosoftDocs#4139) * Updating for VS22 * Update 2 for VS22 * Update 2 VS22 * Update 2 VS22 * Update 2 VS22 * Update after tech review * Update after review * Update date * US1907300 - add md code escapes to code elements - PR23 (MicrosoftDocs#4165) * US1907300 - add md code escapes to code elements - PR23 * fix table error * fix table error * changes after review * Update for VS 2022 * Update for VS 2022 * Update for VS 2022 * Removed the extra semicolon. * Update for VS 2022 * add link to different toolset environment list (MicrosoftDocs#4171) * add link to toolset environment list Co-authored-by: TylerMSFT <[email protected]> * Update after review * Fix value constraint for #line * Update after review * Update for VS2022 (MicrosoftDocs#4162) * Update for VS2022 * Update after review * Update after review * Update after review * Update for VS 2022 * Update for Visual studio 2022 * Update after review * new article- Add IDL MFC method * Update after review * Update after review * add sample connection properties (#4173) * add sample connection properties * add examples * alphabetize list * break the examples out into their own section * adjust examples * update wording * more changes to example section and remove a little redundancy * acrolinx * tech review * acrolinx * change location of troubleshooting step * wording * removed connection id Co-authored-by: TylerMSFT <[email protected]> * Update after review * Update after review * Update after review * Update after review * Update after review * Update after review * Update after review * Address GitHub issues 3/15/22 * Update after review * Update after review * Updating the steps for VS2022 * Update after review * update after review * Update after review * Miscellaneous fixes for issues reported (MicrosoftDocs#4179) * Miscellaneous fixes for issues reported * Update per review * Update after review * Update after review * LinkFix: cpp-docs-pr (2022-03) * Update date * Updates for GitHub issues * Update after review * Update after review * Add ARM64 as valid target machine * Update after review * Update /MACHINE styles, date, add ARM64EC Update /MACHINE styles, date, add ARM64EC. * Update after tech review * edit pass * edits * edits * test * remove test-I was experimenting with adding a remote to a fork * Remove duplicative links (#4195) These links are automatically generated by the In this article feature. * review update * update for bullets * update after review * Componentize is not a good word. * fix links * Update after review * PR review feedback * update alt text * edit pass * experimenting with indentation * experimenting with indentation * Final update * Final update Co-authored-by: Alex Buck <[email protected]> Co-authored-by: Dennis Rea <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Linda Spiller <[email protected]> Co-authored-by: myd7349 <[email protected]> Co-authored-by: opbld15 <[email protected]> Co-authored-by: Kristine Toliver <[email protected]> Co-authored-by: PRMerger15 <[email protected]> Co-authored-by: Craig Casey <[email protected]> Co-authored-by: PRMerger16 <[email protected]> Co-authored-by: PRMerger Service account 2 <[email protected]> Co-authored-by: PRMerger12 <[email protected]> Co-authored-by: PRMerger9 <[email protected]> Co-authored-by: opbld16 <[email protected]> Co-authored-by: Tamara K <[email protected]> Co-authored-by: PRMerger4 <[email protected]> Co-authored-by: opbld17 <[email protected]> Co-authored-by: Daniel Paoliello <[email protected]> Co-authored-by: Laura Brenner <[email protected]> Co-authored-by: Gabor Horvath <[email protected]> Co-authored-by: Austin C. Minor <[email protected]> Co-authored-by: Edward Breeveld <[email protected]> Co-authored-by: PRMerger10 <[email protected]> Co-authored-by: Miya Natsuhara <[email protected]> Co-authored-by: PRMerger14 <[email protected]> Co-authored-by: adr26 <[email protected]> Co-authored-by: Haig MacGregor <[email protected]> Co-authored-by: v-pegao <[email protected]> Co-authored-by: PRMerger18 <[email protected]> Co-authored-by: PRMerger8 <[email protected]> Co-authored-by: Anna Huff <[email protected]> Co-authored-by: Rachana Satao <[email protected]> Co-authored-by: Tyler Whitney <[email protected]> Co-authored-by: TylerMSFT <[email protected]> Co-authored-by: Johnson <[email protected]> Co-authored-by: shrek1402 <[email protected]> Co-authored-by: SaltfishAmi <[email protected]> Co-authored-by: Christopher McClister <[email protected]> Co-authored-by: Michał Janiszewski <[email protected]> Co-authored-by: Will Bjorn <[email protected]> Co-authored-by: Paula Miller <[email protected]>
1 parent 2ebc2b3 commit 04bed63

10 files changed

+176
-127
lines changed
Lines changed: 25 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -1,157 +1,60 @@
11
---
2-
description: "Learn more about: Add a method"
2+
description: "Learn more about: Add a method to an interface in a Microsoft Visual Studio C++ project"
33
title: "Add a method"
4-
ms.date: "11/09/2018"
4+
ms.date: "03/31/2022"
55
f1_keywords: ["vc.codewiz.method.overview", "vc.codewiz.method.idlattrib"]
66
helpviewer_keywords: ["add method wizard [C++]", "methods [C++], adding", "methods [C++], adding using wizards", "IDL attributes, add method wizard"]
7-
ms.assetid: 4ba4e45f-fa38-4d5e-af44-cbec0a7ab558
7+
ms.custom: devdivchpfy22
88
---
99
# Add a method
1010

11-
You can use the [add method wizard](#add-method-wizard) to add a method to an interface in your project. If the project contains a class associated with the interface, the wizard modifies the class, too.
11+
Use the [add method wizard](#add-method-wizard) to add a method to an interface in your project. If the project contains a class associated with the interface, the wizard also adds the method to the class.
1212

13-
**To add a method to your object:**
13+
**Add a method to your interface:**
1414

15-
1. In **Class View**, expand the project node to display the interface to which you want to add the method.
15+
1. From the Visual Studio main menu, choose **View** > **Class view**. In the **Class View** pane, expand the project node to display the interface you want to add the method to.
1616

1717
> [!NOTE]
18-
> You can also add methods to dispinterfaces, which, unless the project is attributed, are located under the library node.
18+
> You can also add methods to dispinterfaces. Unless the project is attributed, dispinterfaces are located under the library node.
1919
2020
1. Right-click the name of the interface.
2121

22-
1. On the shortcut menu, choose **Add**, and then choose **Add Method**.
22+
1. On the shortcut menu, choose **Add** > **Add Method**.
2323

24-
1. In the Add Method Wizard, provide the information to create the method.
24+
1. In the **Add Method** wizard dialog box, provide the information to create the method as described in the next section.
2525

26-
1. Specify any interface definition language settings for this method in the [IDL attributes](#idl-attributes-add-method-wizard) page of the wizard.
27-
28-
1. Select **Finish** to add the method.
29-
30-
## In this section
31-
32-
- [Add method wizard](#add-method-wizard)
33-
- [IDL attributes, add method wizard](#idl-attributes-add-method-wizard)
26+
1. Select **OK** to add the method.
3427

3528
## Add method wizard
3629

37-
Use this wizard to add a method to an interface. Depending on the project type or interface type to which you're adding a method, the wizard displays different options.
30+
Add a method to an interface by using the add method wizard:
3831

39-
### Names
40-
41-
- **Return type**
42-
43-
The data type returned by the method. `HRESULT` is recommended for all interface types, because it provides a standard way to return errors.
44-
45-
|Interface type|Description|
46-
|--------------------|-----------------|
47-
|Dual interface|`HRESULT`. Unchangeable.|
48-
|Custom interface|`HRESULT`. Unchangeable.|
49-
|Local custom interface|Provide your own return type or select from the list.|
50-
|Dispinterface|Provide your own return type or select from the list.|
51-
|MFC ActiveX control dispinterface|If you implement a stock method, the return type is set to the appropriate value and is unchangeable. If you select a method from the **Method name** list and select **Custom** under **Select method type**, select a return type from the list.|
32+
:::image type="content" source="../ide/media/add-method-wizard.png" alt-text="Screenshot of Add method wizard. Method name is aMethod, return type is H RESULT. Two parameters are defined: int x, bool clip":::
5233

5334
- **Method name**
5435

55-
Sets the name for the method.
56-
57-
|Interface type|Description|
58-
|--------------------|-----------------|
59-
|ATL dual interface, custom interface, and local custom interface|Provide your own method name.|
60-
|MFC dispinterface|Provide your own method name or select a suggested method name from the list. If you select a name from the list, the appropriate value appears in the **Return type** box, and it's unchangeable.|
61-
|MFC ActiveX control dispinterface|Provide your own or select either of the stock methods [DoClick](../mfc/reference/colecontrol-class.md#doclick) and [Refresh](../mfc/reference/colecontrol-class.md#refresh). For more information, see [MFC ActiveX controls: Adding stock methods](../mfc/mfc-activex-controls-adding-stock-methods.md).|
62-
63-
- **Method type**
64-
65-
Available only for MFC ActiveX controls. If you provide a method name in the **Method name** box, rather than selecting a method from the list, this box is unavailable.
66-
67-
If you select one of the methods in the **Method name** list, select either the stock implementation or a custom implementation.
68-
69-
|Method type|Description|
70-
|-----------------|-----------------|
71-
|**Stock**|The default. Inserts the stock implementation of the method you select in the **Method name** list. **Return type** is unchangeable if you select **Stock**.|
72-
|**Custom**|Inserts a stub implementation of the method selected in the **Method name** list. For custom method types, you can provide your own return type, or you can select one from the **Return type** list.|
73-
74-
- **Internal name**
75-
76-
Available for only custom methods added to an MFC dispinterface. Sets the name used in the dispatch map, the header (.h) file, and the implementation (.cpp) file. By default, this name is the same as **Method name**. You can change the method name if you're working with an MFC dispinterface or if you're adding a custom method to an MFC ActiveX control dispinterface.
77-
78-
|Interface type|Description|
79-
|--------------------|-----------------|
80-
|ATL dual interface, custom interface, and local custom interface|Not available.|
81-
|MFC dispinterface|Set to the method name by default. You can edit the internal name.|
82-
|MFC ActiveX control dispinterface|You can set the internal name only for custom methods. Stock methods don't use an internal name.|
83-
84-
- **Parameter attributes**
85-
86-
Sets any additional attributes for the parameter specified in **Parameter name**.
87-
88-
|Parameter attribute|Description|Allowed combinations|
89-
|-------------------------|-----------------|--------------------------|
90-
|**In**|Indicates that the parameter is passed from the calling procedure to the called procedure.|`in` only<br /><br /> `in` and `out`|
91-
|**Out**|Indicates that the pointer parameter is returned from the called procedure to the calling procedure (from the server to the client).|`out` only<br /><br /> `in` and `out`<br /><br /> `out` and `retval`|
92-
|**Retval**|Indicates that the parameter receives the return value of the member.|`retval` and `out`|
36+
Provide the method name.
9337

94-
- **Parameter type**
95-
96-
Sets the data type of the parameter. Select the type from the list.
97-
98-
- **Parameter name**
99-
100-
Sets the name of a parameter to pass through your method. After you type the name, select **Add** to add it to the list of parameters that will pass through your method. If you don't provide a parameter name, the wizard ignores any parameter attributes (ATL only) or **Parameter type** selections.
101-
102-
Once you select **Add**, the parameter name appears in **Parameter list**.
103-
104-
> [!NOTE]
105-
> If you supply a parameter name and then select **Finish** before you select **Add**, the parameter isn't added to the method. You must find the method and insert the parameter manually.
106-
107-
- **Add**
108-
109-
Adds the parameter you specify in **Parameter name**, and its type and parameter attributes, to **Parameter list**. Select **Add** to add a parameter to the list.
110-
111-
- **Remove**
112-
113-
Removes the parameter you select in **Parameter list** from the list.
114-
115-
- **Parameter list**
116-
117-
Displays all parameters and their modifiers and types currently added for the method. As you add parameters, the wizard updates **Parameter list** to display each parameter, with its modifier and type.
118-
119-
## IDL attributes, add method wizard
120-
121-
Use this page of the Add Method Wizard to specify any interface definition language (IDL) settings for the method.
122-
123-
- `id`
124-
125-
Sets the numerical ID that identifies the method. For more information, see [id](/windows/win32/Midl/id) in the *MIDL Reference*.
126-
127-
This box is unavailable for custom interfaces and isn't available for MFC dispinterfaces.
128-
129-
- `call_as`
38+
- **Return type**
13039

131-
Specifies the name of a remote method to which this local method can be mapped. For more information, see [call_as](/windows/win32/Midl/call-as) in the *MIDL Reference*.
40+
Type the return type or select it from the drop-down list.
13241

133-
Not available for MFC dispinterfaces.
42+
- **Parameters**
13443

135-
- `helpcontext`
44+
Displays the method's parameters, modifiers, and types. The wizard updates the **Parameters** list as you add parameters.
13645

137-
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*.
46+
- **+**
13847

139-
Not available for MFC dispinterfaces.
48+
Add a parameter. In **Parameters**, type the parameter type, name, and any modifiers. For example, `int x`, and choose **OK**.
14049

141-
- `helpstring`
50+
- **x**
14251

143-
Specifies a character string that's used to describe the element to which it applies. It's set by default to "method *Method name*." For more information, see [helpstring](/windows/win32/Midl/helpstring) in the *MIDL Reference*.
52+
Remove the selected parameter from the **Parameters** list.
14453

145-
Not available for MFC dispinterfaces.
54+
- **Pencil icon**
14655

147-
- **Additional attributes**
56+
Edit the selected parameter.
14857

149-
Not available for MFC dispinterfaces.
58+
## See also
15059

151-
|Attribute|Description|
152-
|---------------|-----------------|
153-
|`hidden`|Indicates that the method exists but shouldn't be displayed in a user-oriented browser. For more information, see [hidden](/windows/win32/Midl/hidden) in the *MIDL Reference*.|
154-
|`source`|Indicates that a member of the method is a source of events. For more information, see [source](/windows/win32/Midl/source) in the *MIDL Reference*.|
155-
|`local`|Specifies to the MIDL compiler that the method isn't remote. For more information, see [local](/windows/win32/Midl/local) in the *MIDL Reference*.|
156-
|`restricted`|Specifies that the method can't be called arbitrarily. For more information, see [restricted](/windows/win32/Midl/restricted) in the *MIDL Reference*.|
157-
|`vararg`|Specifies that the method takes a variable number of arguments. To accomplish this, the last argument must be a safe array of `VARIANT` type that contains the rest of the arguments. For more information, see [vararg](/windows/win32/Midl/vararg) in the *MIDL Reference*.|
60+
[Adding functionality with code wizards](adding-functionality-with-code-wizards-cpp.md)

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#add-method-wizard) (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#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.|
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
@@ -74,6 +74,6 @@ The following three wizards help you customize existing interfaces. They're avai
7474
|Wizard|Project type|
7575
|------------|------------------|
7676
|[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.|
77-
|[Add method wizard](./adding-a-method-visual-cpp.md#add-method-wizard)|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.|
77+
|[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).

docs/ide/media/add-method-wizard.png

6.4 KB
Loading

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ A stock method differs from a custom method in that it is already implemented by
2121

2222
## <a name="_core_adding_a_stock_method_using_classwizard"></a> Adding a Stock Method Using the Add Method Wizard
2323

24-
Adding a stock method is simple using the [Add Method Wizard](../ide/adding-a-method-visual-cpp.md#add-method-wizard). The following procedure demonstrates adding the Refresh method to a control created using the MFC ActiveX Control Wizard.
24+
Adding a stock method is simple using the [Add Method Wizard](../ide/adding-a-method-visual-cpp.md). The following procedure demonstrates adding the Refresh method to a control created using the MFC ActiveX Control Wizard.
2525

2626
#### To add the stock Refresh method using the Add Method Wizard
2727

0 commit comments

Comments
 (0)