Enhancing Views

Scribble: MDI Drawing Application, Lesson 8

Tip   If you prefer working from a printed tutorial, see in MSDN Library Help for details about printing a lesson, a set of topics, or a single topic.

Suggested Reading in the Microsoft Foundation Class Reference

  • Overview

  • Overview

In the previous lessons, you’ve seen how a view acts as an intermediary between a document and the user: The view displays a document on the screen and interprets mouse actions as operations on the document. You’ve also seen how a view cooperates with a frame window so that the frame window implements the generic window behavior while the view provides the application-specific functionality.

However, there are additional benefits to having a view class that is separate from the document and the frame window. This lesson describes how to take advantage of the division of labor between these classes to add special features to your application’s user interface by:

Note   You can find a finished example of this lesson's code in the Scribble Step4 sample source code directory.