-
Book Overview & Buying
-
Table Of Contents
C++ Windows Programming
By :
The WordDocument class is the main class of the application. It extends the StandardDocument class and takes advantage of its document-based functionality.
WordDocument.h
class WordDocument : public StandardDocument {
public:
WordDocument(WindowShow windowShow);
The InitDocument class is called by the constructor, the ClearDocument, and Delete classes.
void InitDocument();
The OnKeyboardMode method is called every time the user presses the Insert key. The UpdateCaret method sets the caret to a vertical bar in insert mode and a block in overwrite mode. When the user marks one or several characters, the caret is cleared.
void OnKeyboardMode(KeyboardMode keyboardMode);
void UpdateCaret();
When the user presses, moves, and releases the mouse, we need to find the index of the character located at the mouse position. The MousePointToIndex method finds the paragraph, and the MousePointToParagraphIndex method finds the character...