IAxWinHostWindowLic Interface

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

This interface provides methods for manipulating a licensed control and its host object.

interface IAxWinHostWindowLic : IAxWinHostWindow

Methods

CreateControlLicCreates a licensed control and attaches it to the host object.
CreateControlLicExCreates a licensed control, attaches it to the host object, and optionally sets up an event handler.

IAxWinHostWindowLic inherits from IAxWinHostWindow and adds methods that support the creation of licensed controls.

See Hosting ActiveX Controls Using ATL AXHost for a sample that uses the members of this interface.

The definition of this interface is available as IDL or C++, as shown below.

Definition typeFile
IDLATLIFace.idl
C++ATLIFace.h (also included in ATLBase.h)

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.

Creates a licensed ActiveX control, initializes it, and hosts it in the specified window, similar to IAxWinHostWindow::CreateControl.

STDMETHOD(CreateControlLicEx)(
    LPCOLESTR lpszTricsData,
    HWND hWnd,
    IStream* pStream,
    IUnknown** ppUnk,
    REFIID riidAdvise,
    IUnknown* punkAdvise,
    BSTR bstrLic);

Parameters

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

Remarks

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

Example

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

Show: