Painting the Control

Circle: ActiveX Control, Lesson 2

Tip   If you prefer working from a printed tutorial, see Copying and Printing in MSDN Library Help for details about printing a lesson, a set of topics, or a single topic.

Now that the framework for the Circle control is in place, you can modify the control to do something more useful. In this lesson, you'll implement the specialized background painting behavior of the Circle control.

Note   You can find a finished example of this lesson's code in the CIRC2 sample source code directory.

The Circle control uses the container's ambient background color property as the default value for its background color and it uses the container's stock background color property to maintain the value of its current background color.

In this lesson, you will learn how to: