Help Center

AfxCAxHostWindowfunction

Returns the OLE container window handle given the handle of the form, or any control in the form, and its control identifier.

COMfunctionCaxHost.incdocumented

Syntax

FUNCTION AfxCAxHostWindow (BYVAL hwnd AS HWND, BYVAL cID AS WORD) AS HWND

Parameters

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