-
Book Overview & Buying
-
Table Of Contents
Microsoft Visual C++ Windows Applications by Example
By :
The Word application is a word processor program. It is capable of handling text on the character level. That is, unlike the Draw and Calc applications, single characters can have their own font, size, and style. The application also supports paragraph management with left, center, right, and justified alignment, cut and paste, load and save as well as print preview. The following screenshot depicts a classic example of the Word Application:

In this application we have five classes to work with. Line is a small class that keeps track of the first and last characters as well as the height of a line in a paragraph.
Position is also a small class, it handles a position in a document. It has two fields to keep track of the paragraph and character positions.
A Word document consists of one or more paragraphs. A paragraph may span one or more lines. The Paragraph class handles one paragraph. It has methods for splitting and merging paragraphs.
Page
is another small...
Change the font size
Change margin width
Change background colour