Compartilhar via


IAxWinHostWindow::AttachControl

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

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

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.

Return Value

A standard HRESULT value.

Requirements

Header: atliface.h

See Also

Reference

IAxWinHostWindow Interface

IAxWinHostWindow::CreateControl

IAxWinHostWindow::CreateControlEx

CAxWindow::AttachControl

AtlAxAttachControl