Skip to content

Commit 32bc0fe

Browse files
Fix acrolinx and formatting
1 parent 964974a commit 32bc0fe

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

docs/mfc/reference/connection-maps.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OLE controls are able to expose interfaces to other applications. These interfac
1212

1313
The Microsoft Foundation Class Library offers a programming model that supports connection points. In this model, "connection maps" are used to designate interfaces or connection points for the OLE control. Connection maps contain one macro for each connection point. For more information on connection maps, see the [CConnectionPoint](../../mfc/reference/cconnectionpoint-class.md) class.
1414

15-
Typically, a control will support just two connection points: one for events and one for property notifications. These are implemented by the `COleControl` base class and require no additional work by the control writer. Any additional connection points you want to implement in your class must be added manually. To support connection maps and points, MFC provides the following macros:
15+
Typically, a control supports just two connection points: one for events and one for property notifications. These are implemented by the `COleControl` base class and require no extra work by the control writer. Any other connection points you want to implement in your class must be added manually. To support connection maps and points, MFC provides the following macros:
1616

1717
### Connection Map Declaration and Demarcation
1818

@@ -53,7 +53,7 @@ Specifies the name of the local class that implements the connection point.
5353

5454
### Remarks
5555

56-
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.
56+
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. Finally, complete the connection point map with the END_CONNECTION_PART macro.
5757

5858
### Requirements
5959

@@ -91,7 +91,7 @@ The interface ID of the interface called by the connection point.
9191

9292
### Remarks
9393

94-
The *iid* argument is an interface ID used to identify the interface that the connection point will call on its connected sinks. For example:
94+
The *iid* argument is an interface ID used to identify the interface that the connection point calls on its connected sinks. For example:
9595

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

@@ -178,7 +178,7 @@ For example:
178178

179179
[!code-cpp[NVC_MFCConnectionPoints#2](../../mfc/codesnippet/cpp/connection-maps_2.cpp)]
180180

181-
implements a connection map, with a connection point, that calls the `IID_ISinkInterface` interface .
181+
implements a connection map, with a connection point, that calls the `IID_ISinkInterface` interface.
182182

183183
### Requirements
184184

@@ -208,16 +208,14 @@ A pointer to the object that implements the interface.
208208
*iid*<br/>
209209
The interface ID of the connection.
210210

211-
*bRefCount*
212-
211+
*bRefCount*<br/>
213212
For out-of-process connections, this parameter must be TRUE, and indicates that creating the connection should cause the reference count of *pUnkSink* to be incremented.
214213

215214
For in-process connections, 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.
216215

217-
**Warning**: In general, it cannot be predicted which connections are in-process and which connections are out-of-process, so it is recommended to always set this parameter to TRUE.
218-
219-
*pdwCookie.*
216+
**Warning**: In general, it can't be predicted which connections are in-process and which connections are out-of-process, so it is recommended to always set this parameter to TRUE.
220217

218+
*pdwCookie.*<br/>
221219
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.
222220

223221
### Return Value
@@ -257,15 +255,13 @@ A pointer to the object that implements the interface.
257255
The interface ID of the connection point interface.
258256

259257
*bRefCount*<br/>
260-
261258
For out-of-process connections, this parameter must be TRUE, and indicates that creating the connection should cause the reference count of *pUnkSink* to be decremented.
262259

263260
For in-process connections, TRUE indicates that creating the connection should cause the reference count of *pUnkSink* to be decremented. FALSE indicates that the reference count should not be decremented.
264261

265262
**Warning**: In general, it cannot be predicted which connections are in-process and which connections are out-of-process, so it is recommended to always set this parameter to TRUE.
266263

267264
*dwCookie*<br/>
268-
269265
The connection identifier returned by `AfxConnectionAdvise`.
270266

271267
### Return Value

0 commit comments

Comments
 (0)