IAxWinHostWindow::AttachControl

STDMETHOD( AttachControl )( IUnknown* pUnkControl, HWND hWnd );

Return Value

A standard HRESULT value.

Parameters

pUnkControl

[in] A pointer to the IUnknown interface of the control to be attached to the host object.

hWnd

[in] A handle to the window to be used for hosting.

Remarks

Attaches an existing (and previously initialized) control to the host object using the window identified by hWnd.

IAxWinHostWindow OverviewClass Members

See Also

IAxWinHostWindow::CreateControl, IAxWinHostWindow::CreateControlEx, CAxWindow::AttachControl, AtlAxAttachControl