-
Book Overview & Buying
-
Table Of Contents
Microsoft Visual C++ Windows Applications by Example
By :
We started by generating the application's skeleton code with The Application Wizard.
Figure is the root class of our class hierarchy. It is abstract and has the abstract sub class TwoDimensionalFigure.
It also has five concrete sub classes: LineFigure, ArrowFigure, RectangleFigure, EllipseFigure, and TextFigure. There is also the class FigureFileManager that handles the file management of the figures.
The document class manages the data of the drawing. Its most central part is the MouseDown, MouseDrag, and MouseUp methods that keep track of the user's mouse movements.
The view class accepts mouse keyboard inputs. It also draws the figures and the surrounding rectangle when the user is marking figures.
Change the font size
Change margin width
Change background colour