Chapter 4. Ring: A Demonstration Example

This chapter presents a simple Windows application, with the purpose of introducing the features of MFC. When the user clicks the left mouse button, a ring is drawn. The user can choose the color of the next ring as well as save and load the set of rings. We will start by creating the framework with the help of the Application Wizard, and then add application specific code.

Ring: A Demonstration Example
  • We store the colors and positions of the ring in an array. There is a predefined type COLORREF holding a color.

  • When the user presses or releases the mouse, messages are sent tothe application. We use the Class Wizard to create methods that ...

Get Microsoft Visual C++ Windows Applications by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.