IAxWinHostWindow::CreateControl
Creates a control, initializes it, and hosts it in the window identified by hWnd.
STDMETHOD( CreateControl )(
LPCOLESTR lpTricsData,
HWND hWnd,
IStream* pStream
);
Parameters
lpTricsData
[in] A string identifying the control to create. Can be a CLSID (must include the braces), ProgID, URL, or raw HTML (prefixed by MSHTML:).hWnd
[in] A handle to the window to be used for hosting.pStream
[in] An interface pointer for a stream containing initialization data for the control. Can be NULL.
Return Value
A standard HRESULT value.
Remarks
This window will be subclassed by the host object exposing this interface so that messages can be reflected to the control and other container features will work.
Calling this method is equivalent to calling IAxWinHostWindow::CreateControlEx.
To create a licensed ActiveX control, see IAxWinHostWindowLic::CreateControlLic.
Requirements
Header: atliface.h
See Also
Reference
IAxWinHostWindow::CreateControlEx