AfxCAxHostPtrfunction
Returns a reference to the OLE container class given the handle of its associated window.
Syntax
FUNCTION AfxCAxHostPtr (BYVAL hwnd AS HWND) AS CAxHost PTR
FUNCTION AfxCAxHostPtr (BYVAL hwnd AS HWND, BYVAL cID AS WORD) AS CAxHost 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. | |
cID | Identifier of the control, e.g. IDC_WEBBROWSER. |
Return value
A pointer to the CAxHost class or NULL.
Description
Returns a reference to the OLE container class given the handle of its associated window.
Reference
- Include file
CaxHost.inc - Defined in AfxNova/CAxHost.inc:1281
- Documented in COM/CAxHost Class.md
- Topic: CAxHost Class