Поделиться через


IAxWinHostWindow::CreateControl

Creates a control, initializes it, and hosts it in the window identified by hWnd.

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

Параметры

  • 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.

Возвращаемое значение

A standard HRESULT value.

Заметки

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.

Требования

Header: atliface.h

См. также

Основные понятия

IAxWinHostWindow Interface

IAxWinHostWindow Members

IAxWinHostWindow::CreateControlEx

IAxWinHostWindow::AttachControl

CAxWindow::CreateControl

AtlAxCreateControl