CAxWindow::AttachControl

HRESULT AttachControl( IUnknown* pControl, IUnknown** ppUnkContainer );

Return Value

A standard HRESULT value.

Parameters

pControl

[in] A pointer to the IUnknown of the control.

ppUnkContainer

[out] A pointer to the IUnknown of the host (the AxWin object).

Remarks

Creates a new host object if one isn’t already present and attaches the specified control to the host.

Note   The control object being attached must be correctly initialized before calling AttachControl.

CAxWindow OverviewClass Members

See Also

AtlAxAttachControl