Skip to content

Commit 56d152d

Browse files
authored
Merge pull request MicrosoftDocs#1039 from msebolt/format-atl-reference-pr7
format atl reference pr7
2 parents 890f026 + 4055a8c commit 56d152d

30 files changed

+472
-472
lines changed

docs/atl/reference/idispeventimpl-class.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,26 @@ class ATL_NO_VTABLE IDispEventImpl : public IDispEventSimpleImpl<nID, T, pdiid>
3131
```
3232

3333
#### Parameters
34-
`nID`
34+
*nID*
3535
A unique identifier for the source object. When `IDispEventImpl` is the base class for a composite control, use the resource ID of the desired contained control for this parameter. In other cases, use an arbitrary positive integer.
3636

37-
`T`
37+
*T*
3838
The user's class, which is derived from `IDispEventImpl`.
3939

40-
`pdiid`
41-
The pointer to the IID of the event dispinterface implemented by this class. This interface must be defined in the type library denoted by `plibid`, `wMajor`, and `wMinor`.
40+
*pdiid*
41+
The pointer to the IID of the event dispinterface implemented by this class. This interface must be defined in the type library denoted by *plibid*, *wMajor*, and *wMinor*.
4242

43-
`plibid`
44-
A pointer to the type library that defines the dispatch interface pointed to by `pdiid`. If **&GUID_NULL**, the type library will be loaded from the object sourcing the events.
43+
*plibid*
44+
A pointer to the type library that defines the dispatch interface pointed to by *pdiid*. If **&GUID_NULL**, the type library will be loaded from the object sourcing the events.
4545

46-
`wMajor`
46+
*wMajor*
4747
The major version of the type library. The default value is 0.
4848

49-
`wMinor`
49+
*wMinor*
5050
The minor version of the type library. The default value is 0.
5151

52-
`tihclass`
53-
The class used to manage the type information for `T`. The default value is a class of type `CComTypeInfoHolder`; however, you can override this template parameter by providing a class of a type other than `CComTypeInfoHolder`.
52+
*tihclass*
53+
The class used to manage the type information for *T*. The default value is a class of type `CComTypeInfoHolder`; however, you can override this template parameter by providing a class of a type other than `CComTypeInfoHolder`.
5454

5555
## Members
5656

@@ -85,12 +85,12 @@ class ATL_NO_VTABLE IDispEventImpl : public IDispEventSimpleImpl<nID, T, pdiid>
8585
Add a [SINK_ENTRY](composite-control-macros.md#sink_entry) or [SINK_ENTRY_EX](composite-control-macros.md#sink_entry_ex) macro to the event sink map for each event on each object that you want to handle. When using `IDispEventImpl` as a base class of a composite control, you can call [AtlAdviseSinkMap](connection-point-global-functions.md#atladvisesinkmap) to establish and break the connection with the event sources for all entries in the event sink map. In other cases, or for greater control, call [DispEventAdvise](idispeventsimpleimpl-class.md#dispeventadvise) to establish the connection between the source object and the base class. Call [DispEventUnadvise](idispeventsimpleimpl-class.md#dispeventunadvise) to break the connection.
8686

8787

88-
You must derive from `IDispEventImpl` (using a unique value for `nID`) for each object for which you need to handle events. You can reuse the base class by unadvising against one source object then advising against a different source object, but the maximum number of source objects that can be handled by a single object at one time is limited by the number of `IDispEventImpl` base classes.
88+
You must derive from `IDispEventImpl` (using a unique value for *nID*) for each object for which you need to handle events. You can reuse the base class by unadvising against one source object then advising against a different source object, but the maximum number of source objects that can be handled by a single object at one time is limited by the number of `IDispEventImpl` base classes.
8989

9090
`IDispEventImpl` provides the same functionality as [IDispEventSimpleImpl](../../atl/reference/idispeventsimpleimpl-class.md), except it gets type information about the interface from a type library rather than having it supplied as a pointer to an [_ATL_FUNC_INFO](../../atl/reference/atl-func-info-structure.md) structure. Use `IDispEventSimpleImpl` when you do not have a type library describing the event interface or want to avoid the overhead associated with using the type library.
9191

9292
> [!NOTE]
93-
> `IDispEventImpl` and `IDispEventSimpleImpl` provide their own implementation of **IUnknown::QueryInterface** enabling each `IDispEventImpl` and `IDispEventSimpleImpl` base class to act as a separate COM identity while still allowing direct access to class members in your main COM object.
93+
> `IDispEventImpl` and `IDispEventSimpleImpl` provide their own implementation of `IUnknown::QueryInterface` enabling each `IDispEventImpl` and `IDispEventSimpleImpl` base class to act as a separate COM identity while still allowing direct access to class members in your main COM object.
9494
9595
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.
9696

@@ -120,20 +120,20 @@ HRESULT GetFuncInfoFromId(
120120
```
121121

122122
### Parameters
123-
`iid`
123+
*iid*
124124
[in] A reference to the ID of the function.
125125

126126
*dispidMember*
127127
[in] The dispatch ID of the function.
128128

129-
`lcid`
129+
*lcid*
130130
[in] The locale context of the function ID.
131131

132-
`info`
132+
*info*
133133
[in] The structure indicating how the function is called.
134134

135135
### Return Value
136-
A standard `HRESULT` value.
136+
A standard HRESULT value.
137137

138138
## <a name="getidsofnames"></a> IDispEventImpl::GetIDsOfNames
139139
Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs, which can be used on subsequent calls to [IDispatch::Invoke](http://msdn.microsoft.com/en-us/964ade8e-9d8a-4d32-bd47-aa678912a54d).
@@ -182,7 +182,7 @@ VARTYPE GetUserDefinedType(
182182
```
183183

184184
### Parameters
185-
`pTI`
185+
*pTI*
186186
[in] A pointer to the [ITypeInfo](http://msdn.microsoft.com/en-us/f3356463-3373-4279-bae1-953378aa2680) interface containing the user-defined type.
187187

188188
*hrt*
@@ -195,14 +195,14 @@ VARTYPE GetUserDefinedType(
195195
See [ITypeInfo::GetRefTypeInfo](http://msdn.microsoft.com/en-us/61d3b31d-6591-4e55-9e82-5246a168be00).
196196

197197
## <a name="idispeventimpl"></a> IDispEventImpl::IDispEventImpl
198-
The constructor. Stores the values of the class template parameters `plibid`, `pdiid`, `wMajor`, and `wMinor`.
198+
The constructor. Stores the values of the class template parameters *plibid*, *pdiid*, *wMajor*, and *wMinor*.
199199

200200
```
201201
IDispEventImpl();
202202
```
203203

204204
## <a name="tihclass"></a> IDispEventImpl::tihclass
205-
This typedef is an instance of the class template parameter `tihclass`.
205+
This typedef is an instance of the class template parameter *tihclass*.
206206

207207
```
208208
typedef tihclass _tihclass;

docs/atl/reference/idispeventsimpleimpl-class.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ class ATL_NO_VTABLE IDispEventSimpleImpl : public _IDispEventLocator<nID, pdiid>
2626
```
2727

2828
#### Parameters
29-
`nID`
29+
*nID*
3030
A unique identifier for the source object. When `IDispEventSimpleImpl` is the base class for a composite control, use the resource ID of the desired contained control for this parameter. In other cases, use an arbitrary positive integer.
3131

32-
`T`
32+
*T*
3333
The user's class, which is derived from `IDispEventSimpleImpl`.
3434

35-
`pdiid`
35+
*pdiid*
3636
The pointer to the IID of the event dispinterface implemented by this class.
3737

3838
## Members
@@ -44,9 +44,9 @@ class ATL_NO_VTABLE IDispEventSimpleImpl : public _IDispEventLocator<nID, pdiid>
4444
|[IDispEventSimpleImpl::Advise](#advise)|Establishes a connection with the default event source.|
4545
|[IDispEventSimpleImpl::DispEventAdvise](#dispeventadvise)|Establishes a connection with the event source.|
4646
|[IDispEventSimpleImpl::DispEventUnadvise](#dispeventunadvise)|Breaks the connection with the event source.|
47-
|[IDispEventSimpleImpl::GetIDsOfNames](#getidsofnames)|Returns **E_NOTIMPL**.|
48-
|[IDispEventSimpleImpl::GetTypeInfo](#gettypeinfo)|Returns **E_NOTIMPL**.|
49-
|[IDispEventSimpleImpl::GetTypeInfoCount](#gettypeinfocount)|Returns **E_NOTIMPL**.|
47+
|[IDispEventSimpleImpl::GetIDsOfNames](#getidsofnames)|Returns E_NOTIMPL.|
48+
|[IDispEventSimpleImpl::GetTypeInfo](#gettypeinfo)|Returns E_NOTIMPL.|
49+
|[IDispEventSimpleImpl::GetTypeInfoCount](#gettypeinfocount)|Returns E_NOTIMPL.|
5050
|[IDispEventSimpleImpl::Invoke](#invoke)|Calls the event handlers listed in the event sink map.|
5151
|[IDispEventSimpleImpl::Unadvise](#unadvise)|Breaks the connection with the default event source.|
5252

@@ -63,12 +63,12 @@ class ATL_NO_VTABLE IDispEventSimpleImpl : public _IDispEventLocator<nID, pdiid>
6363

6464
- Call [DispEventUnadvise](#dispeventunadvise) to break the connection.
6565

66-
You must derive from `IDispEventSimpleImpl` (using a unique value for `nID`) for each object for which you need to handle events. You can reuse the base class by unadvising against one source object then advising against a different source object, but the maximum number of source objects that can be handled by a single object at one time is limited by the number of `IDispEventSimpleImpl` base classes.
66+
You must derive from `IDispEventSimpleImpl` (using a unique value for *nID*) for each object for which you need to handle events. You can reuse the base class by unadvising against one source object then advising against a different source object, but the maximum number of source objects that can be handled by a single object at one time is limited by the number of `IDispEventSimpleImpl` base classes.
6767

68-
**IDispEventSimplImpl** provides the same functionality as [IDispEventImpl](../../atl/reference/idispeventimpl-class.md), except it does not get type information about the interface from a type library. The wizards generate code based only on `IDispEventImpl`, but you can use `IDispEventSimpleImpl` by adding the code by hand. Use `IDispEventSimpleImpl` when you don't have a type library describing the event interface or want to avoid the overhead associated with using the type library.
68+
`IDispEventSimplImpl` provides the same functionality as [IDispEventImpl](../../atl/reference/idispeventimpl-class.md), except it does not get type information about the interface from a type library. The wizards generate code based only on `IDispEventImpl`, but you can use `IDispEventSimpleImpl` by adding the code by hand. Use `IDispEventSimpleImpl` when you don't have a type library describing the event interface or want to avoid the overhead associated with using the type library.
6969

7070
> [!NOTE]
71-
> `IDispEventImpl` and `IDispEventSimpleImpl` provide their own implementation of **IUnknown::QueryInterface** enabling each `IDispEventImpl` or `IDispEventSimpleImpl` base class to act as a separate COM identity while still allowing direct access to class members in your main COM object.
71+
> `IDispEventImpl` and `IDispEventSimpleImpl` provide their own implementation of `IUnknown::QueryInterface` enabling each `IDispEventImpl` or `IDispEventSimpleImpl` base class to act as a separate COM identity while still allowing direct access to class members in your main COM object.
7272
7373
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.
7474

@@ -93,10 +93,10 @@ HRESULT Advise(IUnknown* pUnk);
9393

9494
### Parameters
9595
*pUnk*
96-
[in] A pointer to the **IUnknown** interface of the event source object.
96+
[in] A pointer to the `IUnknown` interface of the event source object.
9797

9898
### Return Value
99-
`S_OK` or any failure `HRESULT` value.
99+
S_OK or any failure HRESULT value.
100100

101101
### Remarks
102102
Once the connection is established, events fired from *pUnk* will be routed to handlers in your class by way of the event sink map.
@@ -115,13 +115,13 @@ HRESULT DispEventAdvise(IUnknown* pUnk const IID* piid);
115115

116116
### Parameters
117117
*pUnk*
118-
[in] A pointer to the **IUnknown** interface of the event source object.
118+
[in] A pointer to the `IUnknown` interface of the event source object.
119119

120-
`piid`
120+
*piid*
121121
A pointer to the IID of the event source object.
122122

123123
### Return Value
124-
`S_OK` or any failure `HRESULT` value.
124+
S_OK or any failure HRESULT value.
125125

126126
### Remarks
127127
Subsequently, events fired from *pUnk* will be routed to handlers in your class by way of the event sink map.
@@ -140,13 +140,13 @@ HRESULT DispEventUnadvise(IUnknown* pUnk const IID* piid);
140140

141141
### Parameters
142142
*pUnk*
143-
[in] A pointer to the **IUnknown** interface of the event source object.
143+
[in] A pointer to the `IUnknown` interface of the event source object.
144144

145-
`piid`
145+
*piid*
146146
A pointer to the IID of the event source object.
147147

148148
### Return Value
149-
`S_OK` or any failure `HRESULT` value.
149+
S_OK or any failure HRESULT value.
150150

151151
### Remarks
152152
Once the connection is broken, events will no longer be routed to the handler functions listed in the event sink map.
@@ -157,7 +157,7 @@ HRESULT DispEventUnadvise(IUnknown* pUnk const IID* piid);
157157
`DispEventAdvise` breaks a connection that was established with the event source specified in `pdiid`.
158158

159159
## <a name="getidsofnames"></a> IDispEventSimpleImpl::GetIDsOfNames
160-
This implementation of **IDispatch::GetIDsOfNames** returns **E_NOTIMPL**.
160+
This implementation of `IDispatch::GetIDsOfNames` returns E_NOTIMPL.
161161

162162
```
163163
STDMETHOD(GetIDsOfNames)(
@@ -172,7 +172,7 @@ STDMETHOD(GetIDsOfNames)(
172172
See [IDispatch::GetIDsOfNames](http://msdn.microsoft.com/en-us/6f6cf233-3481-436e-8d6a-51f93bf91619) in the Windows SDK.
173173

174174
## <a name="gettypeinfo"></a> IDispEventSimpleImpl::GetTypeInfo
175-
This implementation of **IDispatch::GetTypeInfo** returns **E_NOTIMPL**.
175+
This implementation of `IDispatch::GetTypeInfo` returns E_NOTIMPL.
176176

177177
```
178178
STDMETHOD(GetTypeInfo)(
@@ -185,7 +185,7 @@ STDMETHOD(GetTypeInfo)(
185185
See [IDispatch::GetTypeInfo](http://msdn.microsoft.com/en-us/cc1ec9aa-6c40-4e70-819c-a7c6dd6b8c99) in the Windows SDK.
186186

187187
## <a name="gettypeinfocount"></a> IDispEventSimpleImpl::GetTypeInfoCount
188-
This implementation of **IDispatch::GetTypeInfoCount** returns **E_NOTIMPL**.
188+
This implementation of `IDispatch::GetTypeInfoCount` returns E_NOTIMPL.
189189

190190
```
191191
STDMETHOD(GetTypeInfoCount)(UINT* /* pctinfo */);
@@ -195,7 +195,7 @@ STDMETHOD(GetTypeInfoCount)(UINT* /* pctinfo */);
195195
See [IDispatch::GetTypeInfoCount](http://msdn.microsoft.com/en-us/da876d53-cb8a-465c-a43e-c0eb272e2a12) in the Windows SDK.
196196

197197
## <a name="invoke"></a> IDispEventSimpleImpl::Invoke
198-
This implementation of **IDispatch::Invoke** calls the event handlers listed in the event sink map.
198+
This implementation of `IDispatch::Invoke` calls the event handlers listed in the event sink map.
199199

200200
```
201201
STDMETHOD(Invoke)(
@@ -221,10 +221,10 @@ HRESULT Unadvise(IUnknown* pUnk);
221221

222222
### Parameters
223223
*pUnk*
224-
[in] A pointer to the **IUnknown** interface of the event source object.
224+
[in] A pointer to the `IUnknown` interface of the event source object.
225225

226226
### Return Value
227-
`S_OK` or any failure `HRESULT` value.
227+
S_OK or any failure HRESULT value.
228228

229229
### Remarks
230230
Once the connection is broken, events will no longer be routed to the handler functions listed in the event sink map.
@@ -234,7 +234,7 @@ HRESULT Unadvise(IUnknown* pUnk);
234234
235235
`Unadvise` breaks a connection that was established with the default event source specified in `pdiid`.
236236

237-
**Unavise** breaks a connection with the default event source, it gets the IID of the default event source of the object as determined by [AtlGetObjectSourceInterface](composite-control-global-functions.md#atlgetobjectsourceinterface).
237+
`Unavise` breaks a connection with the default event source, it gets the IID of the default event source of the object as determined by [AtlGetObjectSourceInterface](composite-control-global-functions.md#atlgetobjectsourceinterface).
238238

239239
## See Also
240240
[_ATL_FUNC_INFO Structure](../../atl/reference/atl-func-info-structure.md)

docs/atl/reference/idochostuihandlerdispatch-interface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface IDocHostUIHandlerDispatch : IDispatch
2929
### Public Methods
3030

3131
> [!NOTE]
32-
> The links in the following table are to the INet SDK reference topics for the members of the [IDocUIHostHandler](https://msdn.microsoft.com/library/aa753260.aspx) interface. `IDocHostUIHandlerDispatch` has the same functionality as **IDocUIHostHandler**, with the difference being that `IDocHostUIHandlerDispatch` is a dispinterface whereas **IDocUIHostHandler** is a custom interface.
32+
> The links in the following table are to the INet SDK reference topics for the members of the [IDocUIHostHandler](https://msdn.microsoft.com/library/aa753260.aspx) interface. `IDocHostUIHandlerDispatch` has the same functionality as `IDocUIHostHandler`, with the difference being that `IDocHostUIHandlerDispatch` is a dispinterface whereas `IDocUIHostHandler` is a custom interface.
3333
3434
|||
3535
|-|-|

0 commit comments

Comments
 (0)