Overview
Chapter 9 showed you how to use ActiveX controls within an MFC application. In Chapter 25, we examined COM classes that were created using ATL. In this chapter, you'll learn how to write a kind of COM class called an ActiveX control. You had a chance to work with ActiveX controls from the client side in Chapter 9. Now it's time to write your own.Several steps are involved in creating an ActiveX control using ATL:
Deciding what to draw
Developing incoming interfaces for the control
Developing outgoing interfaces (events) for the control
Implementing a persistence mechanism for the control
Providing a user interface for manipulating the control's properties
This chapter covers all these steps. Soon you'll be able to use ATL to create ActiveX controls that you (and other developers) can use in other programs.