-
Book Overview & Buying
-
Table Of Contents
C++ Windows Programming
By :
The StandardDocument class is a direct subclass of Document; it handles the File, Edit, and Help menus and implements file handling, cut, copy, and paste, drop files, and printing. There is no specific message function for this class; all messages are sent to DocumentProc in the Document section covered previously. The document name and the dirty flag are automatically updated by the framework. StandardDocument does also handle the Page Setup dialog, which is more closely described in Chapter 12, The Auxiliary Classes.
StandardDocument.h
namespace SmallWindows {
class StandardDocument : public Document {
public:
Most constructor parameters are sent to the Document constructor. What is specific for StandardDocument is the file description text and the copy and paste format lists. The file description is used by the standard save and open dialogs. The copy and paste lists are used when copying and pasting information between the application...