Share via


How Do I Load a Licensed Control?

"AtlAxWinLic80" is the name of a window class that helps provide ATL's control-hosting functionality for licensed controls. When you create an instance of this class, the window procedure will automatically use the control-hosting API to create a host object associated with the window and load it with the control that you specify as the title of the window. For more information, see How Do I Load Controls Specified at Run Time?.

CAxWindow2 is a CWindow-derived wrapper for creating and manipulating "AtlAxWinLic80" windows.

The procedures in the ATL Control Containment FAQ, while explicitly discussing the hosting of nonlicensed ActiveX controls, can be applied to loading licensed controls by just substituting CAxWindow2 for CAxWindow and "AtlAxWinLic80" for "AtlAxWin80", and by providing a valid license.

See Also

Concepts

ATL Control Containment FAQ