AfxCAxHostWindowfunction
Returns the OLE container window handle given the handle of the form, or any control in the form, and its control identifier.
Syntax
FUNCTION AfxCAxHostWindow (BYVAL hwnd AS HWND, BYVAL cID AS WORD) AS HWND
Parameters
| Name | Description | |
|---|---|---|
hwnd | Handle of the window that hosts he 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
The handle of the window or NULL.
Description
Returns the OLE container window handle given the handle of the form, or any control in the form, and its control identifier.
Reference
- Include file
CaxHost.inc - Defined in AfxNova/CAxHost.inc:1269
- Documented in COM/CAxHost Class.md
- Topic: CAxHost Class