Help Center

AfxCAxHostPtrfunction

Returns a reference to the OLE container class given the handle of its associated window.

COMfunctionCaxHost.incdocumented

Syntax

FUNCTION AfxCAxHostPtr (BYVAL hwnd AS HWND) AS CAxHost PTR
FUNCTION AfxCAxHostPtr (BYVAL hwnd AS HWND, BYVAL cID AS WORD) AS CAxHost PTR

Parameters

NameDescription
hwndHandle 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.
cIDIdentifier 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