Tuesday 14 February 2017

MFC LIBRARY MESSAGE MAPPING

DOCUMENT AND VIEWS:
Ø Core of the application framework.
Ø It separates data from the user’s view of data and thus provides multiple views of the same data.
Ø Documents and views are represented by instances of C++ classes.
Ø CDocument class supports objects used to store or control program's data.
Ø CViewprovides the basic functionality for programmer-defined view classes. A view is attached to a document and acts as an intermediary between the document and the user: the view renders an image of the document on the screen and interprets user input as operations upon the document. The view also renders the image for both printing and print preview.
Ø The Document base class code interacts with the file open and file save menu items; the derived document class does the actual reading and writing of document object’s data.
Ø The view base class represents a window contained inside a frame window; the derived view class interacts with its associated document class and does the application’s display and printer I/O.

Document and View

No comments:
Write comments