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

The StandardDocument class

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

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