Skip to content

Commit f21847f

Browse files
authored
Merge pull request #1000 from msebolt/format-mfc-reference-pr13
format mfc reference pr13
2 parents 6e51240 + 450da7d commit f21847f

30 files changed

+707
-707
lines changed

docs/mfc/reference/coletemplateserver-class.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ void ConnectTemplate(
7777
```
7878

7979
### Parameters
80-
`clsid`
80+
*clsid*
8181
Reference to the OLE class ID that the template requests.
8282

83-
`pDocTemplate`
83+
*pDocTemplate*
8484
Pointer to the document template.
8585

86-
`bMultiInstance`
86+
*bMultiInstance*
8787
Indicates whether a single instance of the application can support multiple instantiations. If **TRUE**, multiple instances of the application are launched for each request to create an object.
8888

8989
### Remarks
@@ -114,7 +114,7 @@ void UpdateRegistry(
114114
```
115115

116116
### Parameters
117-
`nAppType`
117+
*nAppType*
118118
A value from the **OLE_APPTYPE** enumeration, which is defined in AFXDISP.H. It can have any one of the following values:
119119

120120
- `OAT_INPLACE_SERVER` Server has full server user-interface.
@@ -125,25 +125,25 @@ void UpdateRegistry(
125125

126126
- `OAT_DISPATCH_OBJECT` Object is `IDispatch`-capable.
127127

128-
- **OAT_DOC_OBJECT_SERVER** Server supports both embedding and the Document Object component model.
128+
- `OAT_DOC_OBJECT_SERVER` Server supports both embedding and the Document Object component model.
129129

130-
`rglpszRegister`
130+
*rglpszRegister*
131131
A list of entries that is written into the registry only if no entries exist.
132132

133-
`rglpszOverwrite`
133+
*rglpszOverwrite*
134134
A list of entries that is written into the registry regardless of whether any preceding entries exist.
135135

136-
`bRegister`
137-
Determines whether the class is to be registered. If `bRegister` is **TRUE**, the class is registered with the system registry. Otherwise, it unregisters the class.
136+
*bRegister*
137+
Determines whether the class is to be registered. If *bRegister* is **TRUE**, the class is registered with the system registry. Otherwise, it unregisters the class.
138138

139139
### Remarks
140140
The registration information is loaded by means of a call to [CDocTemplate::GetDocString](../../mfc/reference/cdoctemplate-class.md#getdocstring). The substrings retrieved are those identified by the indexes **regFileTypeId**, **regFileTypeName**, and **fileNewName**, as described in the `GetDocString` reference pages.
141141

142142
If the **regFileTypeId** substring is empty or if the call to `GetDocString` fails for any other reason, this function fails and the file information is not entered in the registry.
143143

144-
The information in the arguments `rglpszRegister` and `rglpszOverwrite` is written to the registry through a call to [AfxOleRegisterServerClass](application-control.md#afxoleregisterserverclass). The default information, which is registered when the two arguments are **NULL**, is suitable for most applications. For information on the structure of the information in these arguments, see `AfxOleRegisterServerClass`.
144+
The information in the arguments *rglpszRegister* and *rglpszOverwrite* is written to the registry through a call to [AfxOleRegisterServerClass](application-control.md#afxoleregisterserverclass). The default information, which is registered when the two arguments are **NULL**, is suitable for most applications. For information on the structure of the information in these arguments, see `AfxOleRegisterServerClass`.
145145

146-
For more information, see [Implementing the IDispatch Interface](http://msdn.microsoft.com/en-us/0e171f7f-0022-4e9b-ac8e-98192828e945).
146+
For more information, see [Implementing the IDispatch Interface](http://msdn.microsoft.com/0e171f7f-0022-4e9b-ac8e-98192828e945).
147147

148148
## See Also
149149
[MFC Sample HIERSVR](../../visual-cpp-samples.md)

docs/mfc/reference/coleupdatedialog-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ explicit COleUpdateDialog(
7070
```
7171

7272
### Parameters
73-
`pDoc`
73+
*pDoc*
7474
Points to the document containing the links that may need updating.
7575

7676
*bUpdateLinks*
@@ -79,7 +79,7 @@ explicit COleUpdateDialog(
7979
*bUpdateEmbeddings*
8080
Flag that determines whether embedded objects are to be updated.
8181

82-
`pParentWnd`
82+
*pParentWnd*
8383
Points to the parent or owner window object (of type `CWnd`) to which the dialog object belongs. If it is **NULL**, the parent window of the dialog box will be set to the main application window.
8484

8585
### Remarks

docs/mfc/reference/colevariant-class.md

Lines changed: 37 additions & 37 deletions
Large diffs are not rendered by default.

docs/mfc/reference/collection-class-helpers.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.author: "mblome"
1313
ms.workload: ["cplusplus"]
1414
---
1515
# Collection Class Helpers
16-
The collection classes `CMap`, `CList`, and `CArray` use templated global helper functions for such purposes as comparing, copying, and serializing elements. As part of your implementation of classes based on `CMap`, `CList`, and `CArray`, you must override these functions as necessary with versions tailored to the type of data stored in your map, list, or array. For information on overriding helper functions such as `SerializeElements`, see the article [Collections: How to Make a Type-Safe Collection](../../mfc/how-to-make-a-type-safe-collection.md). Note that **ConstructElements** and **DestructElements** have been deprecated.
16+
The collection classes `CMap`, `CList`, and `CArray` use templated global helper functions for such purposes as comparing, copying, and serializing elements. As part of your implementation of classes based on `CMap`, `CList`, and `CArray`, you must override these functions as necessary with versions tailored to the type of data stored in your map, list, or array. For information on overriding helper functions such as `SerializeElements`, see the article [Collections: How to Make a Type-Safe Collection](../../mfc/how-to-make-a-type-safe-collection.md). Note that `ConstructElements` and `DestructElements` have been deprecated.
1717

1818
The Microsoft Foundation Class Library provides the following global functions in afxtempl.h to help you customize your collection classes:
1919

@@ -42,24 +42,24 @@ CompareElements(
4242
*TYPE*
4343
The type of the first element to be compared.
4444

45-
`pElement1`
45+
*pElement1*
4646
Pointer to the first element to be compared.
4747

48-
`ARG_TYPE`
48+
*ARG_TYPE*
4949
The type of the second element to be compared.
5050

51-
`pElement2`
51+
*pElement2*
5252
Pointer to the second element to be compared.
5353

5454
### Return Value
55-
Nonzero if the object pointed to by `pElement1` is equal to the object pointed to by `pElement2`; otherwise 0.
55+
Nonzero if the object pointed to by *pElement1* is equal to the object pointed to by *pElement2*; otherwise 0.
5656

5757
### Remarks
5858
The `CMap` calls use the `CMap` template parameters *KEY* and `ARG_KEY`.
5959

6060
The default implementation returns the result of the comparison of *\*pElement1* and *\*pElement2*. Override this function so that it compares the elements in a way that is appropriate for your application.
6161

62-
The C++ language defines the comparison operator ( `==`) for simple types ( `char`, `int`, **float**, and so on) but does not define a comparison operator for classes and structures. If you want to use `CompareElements` or to instantiate one of the collection classes that uses it, you must either define the comparison operator or overload `CompareElements` with a version that returns appropriate values.
62+
The C++ language defines the comparison operator ( `==`) for simple types ( **char**, **int**, **float**, and so on) but does not define a comparison operator for classes and structures. If you want to use `CompareElements` or to instantiate one of the collection classes that uses it, you must either define the comparison operator or overload `CompareElements` with a version that returns appropriate values.
6363

6464
### Requirements
6565
**Header:** afxtempl.h
@@ -79,13 +79,13 @@ void AFXAPI CopyElements(
7979
*TYPE*
8080
Template parameter specifying the type of elements to be copied.
8181

82-
`pDest`
82+
*pDest*
8383
Pointer to the destination where the elements will be copied.
8484

85-
`pSrc`
85+
*pSrc*
8686
Pointer to the source of the elements to be copied.
8787

88-
`nCount`
88+
*nCount*
8989
Number of elements to be copied.
9090

9191
### Remarks
@@ -108,20 +108,20 @@ void AFXAPI DumpElements(
108108
```
109109

110110
### Parameters
111-
`dc`
111+
*dc*
112112
Dump context for dumping elements.
113113

114114
*TYPE*
115115
Template parameter specifying the type of the elements.
116116

117-
`pElements`
117+
*pElements*
118118
Pointer to the elements to be dumped.
119119

120-
`nCount`
120+
*nCount*
121121
Number of elements to be dumped.
122122

123123
### Remarks
124-
The **CArray::Dump**, **CList::Dump**, and **CMap::Dump** functions call this if the depth of the dump is greater than 0.
124+
The `CArray::Dump`, `CList::Dump`, and `CMap::Dump` functions call this if the depth of the dump is greater than 0.
125125

126126
The default implementation does nothing. If the elements of your collection are derived from `CObject`, your override will typically iterate through the collection's elements, calling `Dump` for each element in turn.
127127

@@ -138,10 +138,10 @@ AFX_INLINE UINT AFXAPI HashKey(ARG_KEY key);
138138
```
139139

140140
### Parameters
141-
`ARG_KEY`
141+
*ARG_KEY*
142142
Template parameter specifying the data type used to access map keys.
143143

144-
`key`
144+
*key*
145145
The key whose hash value is to be calculated.
146146

147147
### Return Value
@@ -150,7 +150,7 @@ AFX_INLINE UINT AFXAPI HashKey(ARG_KEY key);
150150
### Remarks
151151
This function is called directly by [CMap::RemoveKey](cmap-class.md#removekey) and indirectly by [CMap::Lookup](cmap-class.md#lookup) and [CMap::Operator []](cmap-class.md#operator_at).
152152

153-
The default implementation creates a hash value by shifting `key` right by four positions. Override this function so that it returns hash values appropriate for your application.
153+
The default implementation creates a hash value by shifting *key* right by four positions. Override this function so that it returns hash values appropriate for your application.
154154

155155
### Example
156156
```cpp
@@ -177,13 +177,13 @@ void AFXAPI SerializeElements(CArchive& ar, TYPE* pElements, INT_PTR nCount);
177177
*TYPE*
178178
Template parameter specifying the type of the elements.
179179
180-
`ar`
180+
*ar*
181181
An archive object to archive to or from.
182182
183-
`pElements`
183+
*pElements*
184184
Pointer to the elements being archived.
185185
186-
`nCount`
186+
*nCount*
187187
Number of elements being archived
188188
189189
### Remarks

docs/mfc/reference/coloradjustment-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.author: "mblome"
1313
ms.workload: ["cplusplus"]
1414
---
1515
# COLORADJUSTMENT Structure
16-
The `COLORADJUSTMENT` structure defines the color adjustment values used by the Windows `StretchBlt` and **StretchDIBits** functions when the `StretchBlt` mode is **HALFTONE**.
16+
The `COLORADJUSTMENT` structure defines the color adjustment values used by the Windows `StretchBlt` and `StretchDIBits` functions when the `StretchBlt` mode is **HALFTONE**.
1717

1818
## Syntax
1919

docs/mfc/reference/compareitemstruct-structure.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ typedef struct tagCOMPAREITEMSTRUCT {
3030
```
3131

3232
#### Parameters
33-
`CtlType`
33+
*CtlType*
3434
**ODT_LISTBOX** (which specifies an owner-draw list box) or **ODT_COMBOBOX** (which specifies an owner-draw combo box).
3535

36-
`CtlID`
36+
*CtlID*
3737
The control ID for the list box or combo box.
3838

39-
`hwndItem`
39+
*hwndItem*
4040
The window handle of the control.
4141

4242
*itemID1*
@@ -52,7 +52,7 @@ typedef struct tagCOMPAREITEMSTRUCT {
5252
Application-supplied data for the second item being compared. This value was passed in the call that added the item to the combo or list box.
5353

5454
## Remarks
55-
Whenever an application adds a new item to an owner-drawn list box or combo box created with the **CBS_SORT** or **LBS_SORT** style, Windows sends the owner a `WM_COMPAREITEM` message. The `lParam` parameter of the message contains a long pointer to a `COMPAREITEMSTRUCT` structure. Upon receiving the message, the owner compares the two items and returns a value indicating which item sorts before the other.
55+
Whenever an application adds a new item to an owner-drawn list box or combo box created with the **CBS_SORT** or **LBS_SORT** style, Windows sends the owner a WM_COMPAREITEM message. The *lParam* parameter of the message contains a long pointer to a `COMPAREITEMSTRUCT` structure. Upon receiving the message, the owner compares the two items and returns a value indicating which item sorts before the other.
5656

5757
## Requirements
5858
**Header:** winuser.h

docs/mfc/reference/connection-maps.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ BEGIN_CONNECTION_PART(theClass, localClass)
4848
```
4949

5050
### Parameters
51-
`theClass`
51+
*theClass*
5252
Specifies the name of the control class whose connection point this is.
5353

5454
*localClass*
5555
Specifies the name of the local class that implements the connection point.
5656

5757
### Remarks
58-
In the declaration (.h) file that defines the member functions for your class, start the connection point with the `BEGIN_CONNECTION_PART` macro, then add the `CONNECTION_IID` macro and any other member functions you wish to implement, and complete the connection point map with the `END_CONNECTION_PART` macro.
58+
In the declaration (.h) file that defines the member functions for your class, start the connection point with the BEGIN_CONNECTION_PART macro, then add the CONNECTION_IID macro and any other member functions you wish to implement, and complete the connection point map with the END_CONNECTION_PART macro.
5959

6060
### Requirements
6161
**Header** afxdisp.h
@@ -75,18 +75,18 @@ END_CONNECTION_PART(localClass)
7575
**Header** afxdisp.h
7676

7777
## <a name="connection_iid"></a> CONNECTION_IID
78-
Use between the `BEGIN_CONNECTION_PART` and `END_CONNECTION_PART` macros to define an interface ID for a connection point supported by your OLE control.
78+
Use between the BEGIN_CONNECTION_PART and END_CONNECTION_PART macros to define an interface ID for a connection point supported by your OLE control.
7979

8080
```
8181
CONNECTION_IID(iid)
8282
```
8383

8484
### Parameters
85-
`iid`
85+
*iid*
8686
The interface ID of the interface called by the connection point.
8787

8888
### Remarks
89-
The `iid` argument is an interface ID used to identify the interface that the connection point will call on its connected sinks. For example:
89+
The *iid* argument is an interface ID used to identify the interface that the connection point will call on its connected sinks. For example:
9090

9191
[!code-cpp[NVC_MFCConnectionPoints#10](../../mfc/codesnippet/cpp/connection-maps_1.h)]
9292

@@ -103,7 +103,7 @@ DECLARE_CONNECTION_MAP()
103103
```
104104

105105
### Remarks
106-
If your control supports additional points, use the `DECLARE_CONNECTION_MAP` macro at the end of your class declaration. Then, in the .cpp file that defines the member functions for the class, use the `BEGIN_CONNECTION_MAP` macro, `CONNECTION_PART` macros for each of the control's connection points, and the `END_CONNECTION_MAP` macro to declare the end of the connection map.
106+
If your control supports additional points, use the DECLARE_CONNECTION_MAP macro at the end of your class declaration. Then, in the .cpp file that defines the member functions for the class, use the BEGIN_CONNECTION_MAP macro, CONNECTION_PART macros for each of the control's connection points, and the END_CONNECTION_MAP macro to declare the end of the connection map.
107107

108108
### Requirements
109109
**Header** afxdisp.h
@@ -116,14 +116,14 @@ BEGIN_CONNECTION_MAP(theClass, theBase)
116116
```
117117

118118
### Parameters
119-
`theClass`
119+
*theClass*
120120
Specifies the name of the control class whose connection map this is.
121121

122122
*theBase*
123-
Specifies the name of the base class of `theClass`.
123+
Specifies the name of the base class of *theClass*.
124124

125125
### Remarks
126-
In the implementation (.CPP) file that defines the member functions for your class, start the connection map with the `BEGIN_CONNECTION_MAP` macro, then add macro entries for each of your connection points using the [CONNECTION_PART](#connection_part) macro. Finally, complete the connection map with the [END_CONNECTION_MAP](#end_connection_map) macro.
126+
In the implementation (.CPP) file that defines the member functions for your class, start the connection map with the BEGIN_CONNECTION_MAP macro, then add macro entries for each of your connection points using the [CONNECTION_PART](#connection_part) macro. Finally, complete the connection map with the [END_CONNECTION_MAP](#end_connection_map) macro.
127127

128128
### Requirements
129129
**Header** afxdisp.h
@@ -146,10 +146,10 @@ CONNECTION_PART(theClass, iid, localClass)
146146
```
147147

148148
### Parameters
149-
`theClass`
149+
*theClass*
150150
Specifies the name of the control class whose connection point this is.
151151

152-
`iid`
152+
*iid*
153153
The interface ID of the interface called by the connection point.
154154

155155
*localClass*
@@ -166,7 +166,7 @@ CONNECTION_PART(theClass, iid, localClass)
166166
**Header** afxdisp.h
167167

168168
## <a name="afxconnectionadvise"></a> AfxConnectionAdvise
169-
Call this function to establish a connection between a source, specified by `pUnkSrc`, and a sink, specified by `pUnkSink`.
169+
Call this function to establish a connection between a source, specified by *pUnkSrc*, and a sink, specified by *pUnkSink*.
170170

171171
```
172172
BOOL AFXAPI AfxConnectionAdvise(
@@ -178,20 +178,20 @@ BOOL AFXAPI AfxConnectionAdvise(
178178
```
179179

180180
### Parameters
181-
`pUnkSrc`
181+
*pUnkSrc*
182182
A pointer to the object that calls the interface.
183183

184-
`pUnkSink`
184+
*pUnkSink*
185185
A pointer to the object that implements the interface.
186186

187-
`iid`
187+
*iid*
188188
The interface ID of the connection.
189189

190-
`bRefCount`
191-
**TRUE** indicates that creating the connection should cause the reference count of `pUnkSink` to be incremented. **FALSE** indicates that the reference count should not be incremented.
190+
*bRefCount*
191+
**TRUE** indicates that creating the connection should cause the reference count of *pUnkSink* to be incremented. **FALSE** indicates that the reference count should not be incremented.
192192

193-
`pdwCookie`
194-
A pointer to a `DWORD` where a connection identifier is returned. This value should be passed as the `dwCookie` parameter to `AfxConnectionUnadvise` when disconnecting the connection.
193+
*pdwCookie*
194+
A pointer to a `DWORD` where a connection identifier is returned. This value should be passed as the *dwCookie* parameter to `AfxConnectionUnadvise` when disconnecting the connection.
195195

196196
### Return Value
197197
Nonzero if a connection was established; otherwise 0.
@@ -203,7 +203,7 @@ BOOL AFXAPI AfxConnectionAdvise(
203203
**Header:** afxctl.h
204204

205205
## <a name="afxconnectionunadvise"></a> AfxConnectionUnadvise
206-
Call this function to disconnect a connection between a source, specified by `pUnkSrc`, and a sink, specified by `pUnkSink`.
206+
Call this function to disconnect a connection between a source, specified by *pUnkSrc*, and a sink, specified by *pUnkSink*.
207207

208208
```
209209
BOOL AFXAPI AfxConnectionUnadvise(
@@ -215,19 +215,19 @@ BOOL AFXAPI AfxConnectionUnadvise(
215215
```
216216

217217
### Parameters
218-
`pUnkSrc`
218+
*pUnkSrc*
219219
A pointer to the object that calls the interface.
220220

221-
`pUnkSink`
221+
*pUnkSink*
222222
A pointer to the object that implements the interface.
223223

224-
`iid`
224+
*iid*
225225
The interface ID of the connection point interface.
226226

227-
`bRefCount`
228-
**TRUE** indicates that disconnecting the connection should cause the reference count of `pUnkSink` to be decremented. **FALSE** indicates that the reference count should not be decremented.
227+
*bRefCount*
228+
**TRUE** indicates that disconnecting the connection should cause the reference count of *pUnkSink* to be decremented. **FALSE** indicates that the reference count should not be decremented.
229229

230-
`dwCookie`
230+
*dwCookie*
231231
The connection identifier returned by `AfxConnectionAdvise`.
232232

233233
### Return Value

0 commit comments

Comments
 (0)