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


  • Line and Page are two small classes of this application. Line holds the indexes of the first and last characters of a line in a paragraph together with the height of the line. Page holds the indexes of the first and last paragraph of a page in the document.

  • Position is also a small class; it handles a position in a document. It has two fields for keeping track of the paragraph and character positions.

  • CWordDoc handles the paragraphs of a class. It accepts input from the view class and updates the list of paragraphs in response.

  • Paragraph handles one paragraph. It has methods for splitting and merging paragraphs.

  • CWordView accepts input from the mouse and keyboard. It also displays text in the window client area.