O'Reilly logo

C++ Windows Programming by Stefan Björnander

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. The Document

In the previous chapter we looked into the implementation of the Application and Window classes, which are useful for general Windows applications. In this chapter, we will look into the implementation of the Document, StandardDocument, Menu, and Accelerator classes, which are useful for document-based Windows applications.

The Document class

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required