Document/View Architecture in VC++

Started by Kalyan, Jul 29, 2008, 11:20 AM

Previous topic - Next topic

Kalyan

Document/View Architecture

All graphical MFC applications have to be based on MFC's document/view structure. The application defines one or more document templates (CDocTemplate subclass) that contain CRuntimeClass references the following three classes:

    * a document class (CDocument subclass),
    * a frame class (CFrameWnd subclass),
    * a view class (CView subclass).

The document class contains the internal representation of the application data. An instance is created by the framework for each new or opened document. The frame class describes the user interface of document windows of the application, typically multiple-document interface (MDI) frames. The view class shows a graphical representation of the document type. All classes as CObject subclasses.

A number of overridable methods in each of these classes allow the application to represent almost any kind of document. This basic structure is supported by a large number of support services, such as transparent printing and print preview support and OLE support.

thiruvasagamani

Thanks for this information

Really its very useful for the Beginners
Thiruvasakamani Karnan