Skip to content

Commit 20029a2

Browse files
authored
Add backticks for IDispEventImpl class reference
1 parent 418607e commit 20029a2

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

docs/atl/reference/idispeventimpl-class.md

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ f1_keywords: ["IDispEventImpl", "ATLCOM/ATL::IDispEventImpl", "ATLCOM/ATL::IDisp
66
helpviewer_keywords: ["IDispEventImpl class"]
77
ms.assetid: a64b5288-35cb-4638-aad6-2d15b1c7cf7b
88
---
9-
# IDispEventImpl Class
9+
# `IDispEventImpl` Class
1010

1111
This class provides implementations of the `IDispatch` methods.
1212

@@ -27,85 +27,85 @@ class ATL_NO_VTABLE IDispEventImpl : public IDispEventSimpleImpl<nID, T, pdiid>
2727

2828
#### Parameters
2929

30-
*nID*<br/>
30+
*`nID`*<br/>
3131
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.
3232

33-
*T*<br/>
33+
*`T`*<br/>
3434
The user's class, which is derived from `IDispEventImpl`.
3535

36-
*pdiid*<br/>
37-
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*.
36+
*`pdiid`*<br/>
37+
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`*.
3838

39-
*plibid*<br/>
40-
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.
39+
*`plibid`*<br/>
40+
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.
4141

42-
*wMajor*<br/>
42+
*`wMajor`*<br/>
4343
The major version of the type library. The default value is 0.
4444

45-
*wMinor*<br/>
45+
*`wMinor`*<br/>
4646
The minor version of the type library. The default value is 0.
4747

48-
*tihclass*<br/>
49-
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`.
48+
*`tihclass`*<br/>
49+
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`.
5050

5151
## Members
5252

5353
### Public Typedefs
5454

5555
|Name|Description|
5656
|----------|-----------------|
57-
|[IDispEventImpl::_tihclass](#_tihclass)|The class used to manage the type information. By default, `CComTypeInfoHolder`.|
57+
|[`IDispEventImpl::_tihclass`](#_tihclass)|The class used to manage the type information. By default, `CComTypeInfoHolder`.|
5858

5959
### Public Constructors
6060

6161
|Name|Description|
6262
|----------|-----------------|
63-
|[IDispEventImpl::IDispEventImpl](#idispeventimpl)|The constructor.|
63+
|[`IDispEventImpl::IDispEventImpl`](#idispeventimpl)|The constructor.|
6464

6565
### Public Methods
6666

6767
|Name|Description|
6868
|----------|-----------------|
69-
|[IDispEventImpl::GetFuncInfoFromId](#getfuncinfofromid)|Locates the function index for the specified dispatch identifier.|
70-
|[IDispEventImpl::GetIDsOfNames](#getidsofnames)|Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs.|
71-
|[IDispEventImpl::GetTypeInfo](#gettypeinfo)|Retrieves the type information for an object.|
72-
|[IDispEventImpl::GetTypeInfoCount](#gettypeinfocount)|Retrieves the number of type information interfaces.|
73-
|[IDispEventImpl::GetUserDefinedType](#getuserdefinedtype)|Retrieves the basic type of a user-defined type.|
69+
|[`IDispEventImpl::GetFuncInfoFromId`](#getfuncinfofromid)|Locates the function index for the specified dispatch identifier.|
70+
|[`IDispEventImpl::GetIDsOfNames`](#getidsofnames)|Maps a single member and an optional set of argument names to a corresponding set of integer `DISPID`s.|
71+
|[`IDispEventImpl::GetTypeInfo`](#gettypeinfo)|Retrieves the type information for an object.|
72+
|[`IDispEventImpl::GetTypeInfoCount`](#gettypeinfocount)|Retrieves the number of type information interfaces.|
73+
|[`IDispEventImpl::GetUserDefinedType`](#getuserdefinedtype)|Retrieves the basic type of a user-defined type.|
7474

7575
## Remarks
7676

7777
`IDispEventImpl` provides a way of implementing an event dispinterface without requiring you to supply implementation code for every method/event on that interface. `IDispEventImpl` provides implementations of the `IDispatch` methods. You only need to supply implementations for the events that you are interested in handling.
7878

7979
`IDispEventImpl` works in conjunction with the event sink map in your class to route events to the appropriate handler function. To use this class:
8080

81-
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.
81+
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.
8282

83-
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.
83+
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.
8484

85-
`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.
85+
`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.
8686

8787
> [!NOTE]
8888
> `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.
8989
90-
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.
90+
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.
9191

92-
For more information, see [Supporting IDispEventImpl](../../atl/supporting-idispeventimpl.md).
92+
For more information, see [Supporting `IDispEventImpl`](../../atl/supporting-idispeventimpl.md).
9393

9494
## Inheritance Hierarchy
9595

9696
`_IDispEvent`
9797

9898
`_IDispEventLocator`
9999

100-
[IDispEventSimpleImpl](../../atl/reference/idispeventsimpleimpl-class.md)
100+
[`IDispEventSimpleImpl`](../../atl/reference/idispeventsimpleimpl-class.md)
101101

102102
`IDispEventImpl`
103103

104104
## Requirements
105105

106-
**Header:** atlcom.h
106+
**Header:** `atlcom.h`
107107

108-
## <a name="getfuncinfofromid"></a> IDispEventImpl::GetFuncInfoFromId
108+
## <a name="getfuncinfofromid"></a> `IDispEventImpl::GetFuncInfoFromId`
109109

110110
Locates the function index for the specified dispatch identifier.
111111

@@ -119,25 +119,25 @@ HRESULT GetFuncInfoFromId(
119119

120120
### Parameters
121121

122-
*iid*<br/>
122+
*`iid`*<br/>
123123
[in] A reference to the ID of the function.
124124

125-
*dispidMember*<br/>
125+
*`dispidMember`*<br/>
126126
[in] The dispatch ID of the function.
127127

128-
*lcid*<br/>
128+
*`lcid`*<br/>
129129
[in] The locale context of the function ID.
130130

131-
*info*<br/>
131+
*`info`*<br/>
132132
[in] The structure indicating how the function is called.
133133

134134
### Return Value
135135

136-
A standard HRESULT value.
136+
A standard `HRESULT` value.
137137

138-
## <a name="getidsofnames"></a> IDispEventImpl::GetIDsOfNames
138+
## <a name="getidsofnames"></a> `IDispEventImpl::GetIDsOfNames`
139139

140-
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](/windows/win32/api/oaidl/nf-oaidl-idispatch-invoke).
140+
Maps a single member and an optional set of argument names to a corresponding set of integer `DISPID`s, which can be used on subsequent calls to [`IDispatch::Invoke`](/windows/win32/api/oaidl/nf-oaidl-idispatch-invoke).
141141

142142
```
143143
STDMETHOD(GetIDsOfNames)(
@@ -150,9 +150,9 @@ STDMETHOD(GetIDsOfNames)(
150150

151151
### Remarks
152152

153-
See [IDispatch::GetIDsOfNames](/windows/win32/api/oaidl/nf-oaidl-idispatch-getidsofnames) in the Windows SDK.
153+
See [`IDispatch::GetIDsOfNames`](/windows/win32/api/oaidl/nf-oaidl-idispatch-getidsofnames) in the Windows SDK.
154154

155-
## <a name="gettypeinfo"></a> IDispEventImpl::GetTypeInfo
155+
## <a name="gettypeinfo"></a> `IDispEventImpl::GetTypeInfo`
156156

157157
Retrieves the type information for an object, which can then be used to get the type information for an interface.
158158

@@ -165,7 +165,7 @@ STDMETHOD(GetTypeInfo)(
165165

166166
### Remarks
167167

168-
## <a name="gettypeinfocount"></a> IDispEventImpl::GetTypeInfoCount
168+
## <a name="gettypeinfocount"></a> `IDispEventImpl::GetTypeInfoCount`
169169

170170
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
171171

@@ -175,9 +175,9 @@ STDMETHOD(GetTypeInfoCount)(UINT* pctinfo);
175175

176176
### Remarks
177177

178-
See [IDispatch::GetTypeInfoCount](/windows/win32/api/oaidl/nf-oaidl-idispatch-gettypeinfocount) in the Windows SDK.
178+
See [`IDispatch::GetTypeInfoCount`](/windows/win32/api/oaidl/nf-oaidl-idispatch-gettypeinfocount) in the Windows SDK.
179179

180-
## <a name="getuserdefinedtype"></a> IDispEventImpl::GetUserDefinedType
180+
## <a name="getuserdefinedtype"></a> `IDispEventImpl::GetUserDefinedType`
181181

182182
Retrieves the basic type of a user-defined type.
183183

@@ -189,10 +189,10 @@ VARTYPE GetUserDefinedType(
189189

190190
### Parameters
191191

192-
*pTI*<br/>
193-
[in] A pointer to the [ITypeInfo](/windows/win32/api/oaidl/nn-oaidl-itypeinfo) interface containing the user-defined type.
192+
*`pTI`*<br/>
193+
[in] A pointer to the [`ITypeInfo`](/windows/win32/api/oaidl/nn-oaidl-itypeinfo) interface containing the user-defined type.
194194

195-
*hrt*<br/>
195+
*`hrt`*<br/>
196196
[in] A handle to the type description to be retrieved.
197197

198198
### Return Value
@@ -201,19 +201,19 @@ The type of variant.
201201

202202
### Remarks
203203

204-
See [ITypeInfo::GetRefTypeInfo](/windows/win32/api/oaidl/nf-oaidl-itypeinfo-getreftypeinfo).
204+
See [`ITypeInfo::GetRefTypeInfo`](/windows/win32/api/oaidl/nf-oaidl-itypeinfo-getreftypeinfo).
205205

206-
## <a name="idispeventimpl"></a> IDispEventImpl::IDispEventImpl
206+
## <a name="idispeventimpl"></a> `IDispEventImpl::IDispEventImpl`
207207

208-
The constructor. Stores the values of the class template parameters *plibid*, *pdiid*, *wMajor*, and *wMinor*.
208+
The constructor. Stores the values of the class template parameters *`plibid`*, *`pdiid`*, *`wMajor`*, and *`wMinor`*.
209209

210210
```
211211
IDispEventImpl();
212212
```
213213

214-
## <a name="_tihclass"></a> IDispEventImpl::_tihclass
214+
## <a name="_tihclass"></a> `IDispEventImpl::_tihclass`
215215

216-
This typedef is an instance of the class template parameter *tihclass*.
216+
This typedef is an instance of the class template parameter *`tihclass`*.
217217

218218
```
219219
typedef tihclass _tihclass;
@@ -225,10 +225,10 @@ By default, the class is `CComTypeInfoHolder`. `CComTypeInfoHolder` manages the
225225

226226
## See also
227227

228-
[_ATL_FUNC_INFO Structure](../../atl/reference/atl-func-info-structure.md)<br/>
229-
[IDispatchImpl Class](../../atl/reference/idispatchimpl-class.md)<br/>
230-
[IDispEventSimpleImpl Class](../../atl/reference/idispeventsimpleimpl-class.md)<br/>
231-
[SINK_ENTRY](composite-control-macros.md#sink_entry)<br/>
232-
[SINK_ENTRY_EX](composite-control-macros.md#sink_entry_ex)<br/>
233-
[SINK_ENTRY_INFO](composite-control-macros.md#sink_entry_info)<br/>
228+
[`_ATL_FUNC_INFO` Structure](../../atl/reference/atl-func-info-structure.md)<br/>
229+
[`IDispatchImpl` Class](../../atl/reference/idispatchimpl-class.md)<br/>
230+
[`IDispEventSimpleImpl` Class](../../atl/reference/idispeventsimpleimpl-class.md)<br/>
231+
[`SINK_ENTRY`](composite-control-macros.md#sink_entry)<br/>
232+
[`SINK_ENTRY_EX`](composite-control-macros.md#sink_entry_ex)<br/>
233+
[`SINK_ENTRY_INFO`](composite-control-macros.md#sink_entry_info)<br/>
234234
[Class Overview](../../atl/atl-class-overview.md)

0 commit comments

Comments
 (0)