You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/adding-a-member-function-visual-cpp.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,12 @@ Once you've added the member function using the wizard, you can edit the code in
33
33
34
34
Sets the return type for the member function you're adding. You can provide your own return type, or you can select from the list of available types. For information about the types, see [Fundamental types](../cpp/fundamental-types-cpp.md).
@@ -48,11 +48,11 @@ Once you've added the member function using the wizard, you can edit the code in
48
48
49
49
Sets the type of parameter you're adding for the member function, if the member function has parameters. You can provide your own parameter type, or you can select from the list of available types.
50
50
51
-
||||
52
-
|------------|-----------|-------------------|
53
-
|**char**|**int**|**unsigned char**|
54
-
|**double**|**long**|**unsigned int**|
55
-
|**float**|**short**|**unsigned long**|
51
+
||||
52
+
|---|---|---|
53
+
|`char`|`int`|`unsigned char`|
54
+
|`double`|`long`|`unsigned int`|
55
+
|`float`|`short`|`unsigned long`|
56
56
57
57
-**Parameter name**
58
58
@@ -64,7 +64,7 @@ Once you've added the member function using the wizard, you can edit the code in
64
64
65
65
-**Access**
66
66
67
-
Sets the access to the member function. Access modifiers are keywords that specify the access other classes have to the member function. For more information about specifying access, see [Member-access control](../cpp/member-access-control-cpp.md). The member function access level is set to **public** by default.
67
+
Sets the access to the member function. Access modifiers are keywords that specify the access other classes have to the member function. For more information about specifying access, see [Member-access control](../cpp/member-access-control-cpp.md). The member function access level is set to `public` by default.
Copy file name to clipboardExpand all lines: docs/ide/adding-a-member-variable-visual-cpp.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ This wizard adds a member variable declaration to the header file. Depending on
52
52
53
53
-**Access**
54
54
55
-
Sets the access to the member variable. Access modifiers are keywords that specify the access other classes have to the member variable. For more information about specifying access, see [member-access control](../cpp/member-access-control-cpp.md). The member variable access level is set to **public** by default.
55
+
Sets the access to the member variable. Access modifiers are keywords that specify the access other classes have to the member variable. For more information about specifying access, see [member-access control](../cpp/member-access-control-cpp.md). The member variable access level is set to `public` by default.
56
56
57
57
-[public](../cpp/public-cpp.md)
58
58
-[protected](../cpp/protected-cpp.md)
@@ -68,11 +68,11 @@ This wizard adds a member variable declaration to the header file. Depending on
68
68
69
69
|||
70
70
|-|-|
71
-
|**char**|**short**|
72
-
|**double**|**unsigned char**|
73
-
|**float**|**unsigned int**|
74
-
|**int**|**unsigned long**|
75
-
|**long**||
71
+
|`char`|`short`|
72
+
|`double`|`unsigned char`|
73
+
|`float`|`unsigned int`|
74
+
|`int`|`unsigned long`|
75
+
|`long`||
76
76
77
77
- If you're adding a member variable for a dialog box control, this box is filled with the type of object that is returned for a control or value. If you select **Control**, then **Variable type** specifies the base class of the control you select in the **Control ID** box. If the dialog box control can hold a value, and if you select **Value**, then **Variable type** specifies the appropriate type for the value that control can hold. For more information, see [dialog box controls and variable types](#dialog-box-controls-and-variable-types).
78
78
@@ -109,11 +109,11 @@ This wizard adds a member variable declaration to the header file. Depending on
109
109
110
110
-**Min value**
111
111
112
-
Available only when the variable type is **BOOL**, `int`, **UINT**, **long**, `DWORD`, **float**, **double**, **BYTE**, **short**, [COLECurrency](../mfc/reference/colecurrency-class.md) or [CTime](../atl-mfc-shared/reference/ctime-class.md). Indicates the lowest value acceptable for a scale or date range.
112
+
Available only when the variable type is `BOOL`, `int`, `UINT`, `long`, `DWORD`, `float`, `double`, `BYTE`, `short`, [COLECurrency](../mfc/reference/colecurrency-class.md) or [CTime](../atl-mfc-shared/reference/ctime-class.md). Indicates the lowest value acceptable for a scale or date range.
113
113
114
114
-**Max value**
115
115
116
-
Available only when the variable type is **BOOL**, `int`, **UINT**, **long**, `DWORD`, **float**, **double**, **BYTE**, **short**, `COLECurrency`, or `CTime`. Indicates the highest value acceptable for a scale or date range.
116
+
Available only when the variable type is `BOOL`, `int`, `UINT`, `long`, `DWORD`, `float`, `double`, `BYTE`, `short`, `COLECurrency`, or `CTime`. Indicates the highest value acceptable for a scale or date range.
117
117
118
118
-**.h file**
119
119
@@ -137,10 +137,10 @@ The following table describes all the dialog box control types that are supporte
|Date time picker control|SysDateTimePick32|[CDateTimeCtrl](../mfc/reference/cdatetimectrl-class.md)|[CTime](../atl-mfc-shared/reference/ctime-class.md)|Min value/max value|
143
-
|Edit box|EDIT|[CEdit](../mfc/reference/cedit-class.md)|`CString`, int, UINT, long, DWORD, float, double, BYTE, short, BOOL, `COleDateTime`, or **COleCurrency**|Min value/max value; some support max characters|
143
+
|Edit box|EDIT|[CEdit](../mfc/reference/cedit-class.md)|`CString`, int, UINT, long, DWORD, float, double, BYTE, short, BOOL, `COleDateTime`, or `COleCurrency`|Min value/max value; some support max characters|
144
144
|Hotkey control|msctls_hotkey32|[CHotKeyCtrl](../mfc/reference/chotkeyctrl-class.md)|None; control only|N/A|
|**In**|Indicates that the parameter is passed from the calling procedure to the called procedure.|**in** only<br /><br /> **in** and **out**|
90
-
|**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**|
91
-
|**Retval**|Indicates that the parameter receives the return value of the member.|**retval** and out|
89
+
|**In**|Indicates that the parameter is passed from the calling procedure to the called procedure.|`in` only<br /><br /> `in` and `out`|
90
+
|**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`|
91
+
|**Retval**|Indicates that the parameter receives the return value of the member.|`retval` and `out`|
92
92
93
93
-**Parameter type**
94
94
@@ -119,25 +119,25 @@ Use this wizard to add a method to an interface. Depending on the project type o
119
119
120
120
Use this page of the Add Method Wizard to specify any interface definition language (IDL) settings for the method.
121
121
122
-
-**id**
122
+
-`id`
123
123
124
124
Sets the numerical ID that identifies the method. For more information, see [id](/windows/desktop/Midl/id) in the *MIDL Reference*.
125
125
126
126
This box is unavailable for custom interfaces and isn't available for MFC dispinterfaces.
127
127
128
-
-**call_as**
128
+
-`call_as`
129
129
130
130
Specifies the name of a remote method to which this local method can be mapped. For more information, see [call_as](/windows/desktop/Midl/call-as) in the *MIDL Reference*.
131
131
132
132
Not available for MFC dispinterfaces.
133
133
134
-
-**helpcontext**
134
+
-`helpcontext`
135
135
136
136
Specifies a context ID that lets the user view information about this method in the Help file. For more information, see [helpcontext](/windows/desktop/Midl/helpcontext) in the *MIDL Reference*.
137
137
138
138
Not available for MFC dispinterfaces.
139
139
140
-
-**helpstring**
140
+
-`helpstring`
141
141
142
142
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/desktop/Midl/helpstring) in the *MIDL Reference*.
143
143
@@ -149,8 +149,8 @@ Use this page of the Add Method Wizard to specify any interface definition langu
149
149
150
150
|Attribute|Description|
151
151
|---------------|-----------------|
152
-
|**hidden**|Indicates that the method exists but shouldn't be displayed in a user-oriented browser. For more information, see [hidden](/windows/desktop/Midl/hidden) in the *MIDL Reference*.|
153
-
|**source**|Indicates that a member of the method is a source of events. For more information, see [source](/windows/desktop/Midl/source) in the *MIDL Reference*.|
154
-
|**local**|Specifies to the MIDL compiler that the method isn't remote. For more information, see [local](/windows/desktop/Midl/local) in the *MIDL Reference*.|
155
-
|**restricted**|Specifies that the method can't be called arbitrarily. For more information, see [restricted](/windows/desktop/Midl/restricted) in the *MIDL Reference*.|
156
-
|**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/desktop/Midl/vararg) in the *MIDL Reference*.|
152
+
|`hidden`|Indicates that the method exists but shouldn't be displayed in a user-oriented browser. For more information, see [hidden](/windows/desktop/Midl/hidden) in the *MIDL Reference*.|
153
+
|`source`|Indicates that a member of the method is a source of events. For more information, see [source](/windows/desktop/Midl/source) in the *MIDL Reference*.|
154
+
|`local`|Specifies to the MIDL compiler that the method isn't remote. For more information, see [local](/windows/desktop/Midl/local) in the *MIDL Reference*.|
155
+
|`restricted`|Specifies that the method can't be called arbitrarily. For more information, see [restricted](/windows/desktop/Midl/restricted) in the *MIDL Reference*.|
156
+
|`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/desktop/Midl/vararg) in the *MIDL Reference*.|
0 commit comments