ATL ActiveX Control
ATL ActiveX Control
•CComPtr<T> general-purpose smart-pointer,
•CComBSTR BSTR wrapper,
•CComVariant VARIANT wrapper, and
•CComSafeArray<T> SAFEARRAY wrapper.
ActiveX controls
•An ActiveX control is a reusable software component based on the
Component Object Model (COM) that supports a wide variety of OLE
functionality and can be customized to fit many software needs.
•ActiveX controls are designed for use both in ordinary ActiveX control
containers and on the Internet, in World Wide Web pages.
•You can create ActiveX controls either with MFC, or with the
Active Template Library (ATL).
•You can create windowless ActiveX controls and controls that only create a
window when they become active.
•Windowless controls speed up the display of your application and
make it possible to have transparent and nonrectangular controls.
•You can also load ActiveX control properties asynchronously.
•An ActiveX control is implemented as an in-process server
(typically a small object) that can be used in any OLE container.
•The full functionality of an ActiveX control is available only when
used within an OLE container designed to be aware of ActiveX
controls.
•This container type, hereafter called a "control container,"
can operate an ActiveX control by using the control's
properties and methods, and receives notifications from the
ActiveX control in the form of events.
•The following figure demonstrates this interaction.