Partager via


CAxWindow2T Class

This class provides methods for manipulating a window that hosts an ActiveX control, and also has support for hosting licensed ActiveX controls.

Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

template < 
class TBase= CWindow 
> 
class CAxWindow2T : 
public CAxWindowT< TBase >

Parameters

  • TBase
    The class from which CAxWindowT derives.

Members

Public Constructors

Name

Description

CAxWindow2T::CAxWindow2T

Constructs a CAxWindow2T object.

Public Methods

Name

Description

CAxWindow2T::Create

Creates a host window.

CAxWindow2T::CreateControlLic

Creates a licensed ActiveX control, initializes it, and hosts it in the specified window.

CAxWindow2T::CreateControlLicEx

Creates a licensed ActiveX control, initializes it, hosts it in the specified window, and retrieves an interface pointer (or pointers) from the control.

CAxWindow2T::GetWndClassName

Static method that retrieves the name of the window class.

Public Operators

Name

Description

CAxWindow2T::operator =

Assigns an HWND to an existing CAxWindow2T object.

Remarks

CAxWindow2T provides methods for manipulating a window that hosts an ActiveX control. CAxWindow2T also has support for hosting licensed ActiveX controls. The hosting is provided by "AtlAxWinLic80", which is wrapped by CAxWindow2T.

Class CAxWindow2 is implemented as a specialization of the CAxWindow2T class. This specialization is declared as:

typedef CAxWindow2T <CWindow> CAxWindow2;

Note

CAxWindowT members are documented under CAxWindow.

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

Inheritance Hierarchy

TBase

CAxWindowT

CAxWindow2T

Requirements

Header: atlwin.h

See Also

Concepts

ATL Control Containment FAQ

Other Resources

ATL Class Overview