Compartilhar via


IAxWinHostWindowLic::CreateControlLic

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

STDMETHOD( CreateControlLic )(
   LPCOLESTR lpTricsData,
   HWND hWnd,
   IStream* pStream,
   BSTR bstrLic
);

Parameters

  • bstrLic
    [in] The BSTR that contains the license key for the control.

Remarks

See IAxWinHostWindow::CreateControl for a description of the remaining parameters and return value.

Calling this method is equivalent to calling IAxWinHostWindowLic::CreateControlLicEx

Example

See Hosting ActiveX Controls Using ATL AXHost for a sample that uses IAxWinHostWindowLic::CreateControlLic.

Requirements

Header: atliface.h

See Also

Reference

IAxWinHostWindowLic Interface

Other Resources

IAxWinHostWindowLic Members