AfxCAxHostDispPtrfunction
Returns a reference to the control's default interface given the handle of the window that hosts it.
Syntax
FUNCTION AfxCAxHostDispPtr (BYVAL hwnd AS HWND) AS IDispatch PTR
Parameters
| Name | Description | |
|---|---|---|
hwnd | Handle of the window that hosts the ActiveX control. If you don't know the value of this handle, you can get it calling the AfxCAxHostWindow function. |
Return value
IDispatch. A reference to the ActiveX control's default interface.
Description
Returns a reference to the OLE container class given the handle of its associated window. This is not an AddRefed pointer, so don't release it.
Reference
- Include file
CaxHost.inc - Defined in AfxNova/CAxHost.inc:1310
- Documented in COM/CAxHost Class.md
- Topic: CAxHost Class