In the previous chapter we looked into the implementation of the
Window classes, which are useful for general Windows applications. In this chapter, we will look into the implementation of the
Accelerator classes, which are useful for document-based Windows applications.
In this book, a document is a window intended for common document-based applications, such as the drawing program, spreadsheet program, and word processor of this book. The
Document class implements the document described previously and is a direct subclass of the
Window class. It supports caret and dirty flag, keyboard status, menus, accelerators, the mouse wheel, scroll bars, and ...