IAxWinHostWindow::CreateControl

STDMETHOD( CreateControl )( LPCOLESTR lpTricsData, HWND hWnd, IStream* pStream );

Return Value

A standard HRESULT value.

Parameters

lpTricsData

[in] A string identifying the control to create. Can be a CLSID (must include the braces), ProgID, URL, or raw HTML (prefixed with 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.

Remarks

Creates a control, initializes it, and hosts it in the window identified by hWnd. 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(lpTricsData, hWnd, pStream, NULL, IID_NULL, NULL)

IAxWinHostWindow OverviewClass Members

See Also

IAxWinHostWindow::CreateControlEx, IAxWinHostWindow::AttachControl, CAxWindow::CreateControl, AtlAxCreateControl