Chapter 7. The Draw Application

In this chapter, we will deal with a drawing program. It is capable of drawing lines, arrows, rectangles, and ellipses. It is also capable of writing and editing text, cut-and-paste figures as well as saving and loading the drawings. The following screenshot depicts a classic example of the Draw Application:

The Draw Application
  • We start by generating the application's skeleton code with the Application Wizard. The process is similar to the Ring application code.

  • The figures are represented by a class hierarchy. The root class is Figure. It is abstract and has a set of pure virtual methods that are to be defined by its sub classes. It has ...

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.