Book Image

Microsoft Visual C++ Windows Applications by Example

By : Stefan Bjornander, Stefan Björnander
Book Image

Microsoft Visual C++ Windows Applications by Example

By: Stefan Bjornander, Stefan Björnander

Overview of this book

Table of Contents (15 chapters)
Microsoft Visual C++ Windows Applications by Example
Credits
About the Author
About the Reviewer
Preface
Index

Summary


  • We generated the code with the Application Wizard.

  • The Reference class keeps track of references in the spreadsheet.

  • The Scanner class group characters together into tokens, the least significant parts of the formula. The Token class represents the tokens.

  • The Parser class parses the tokens given by the scanner and generates a syntax tree (an object of the SyntaxTree class).

  • The Cell class handles a single class in the spreadsheet. A cell can hold a test, a value, or a formula. The CellMatrix and TSetMatrix methods handle the cells and the target sets of the spreadsheet.

  • CCalcDoc manages the internal logic of the application. The application is always in the edit or mark state. In the edit state, a caret is visible. In the mark state, one or more cells are marked.

  • CCalcView handles the input and display of the application. In this case, the view class handles the marking of cells by itself.