Explain Doc/View architecture

Answer Posted / surendra mishra

A MFC application is created using different classes. Each
of the class has given a distinct responsibility.

1. Frame window class - Represents the application window.

2. View class- Represents the data to the user in specific
understandable format.

3. Document class – Represents the applications data.(
Program data used by application during its execution).

MFC architecture allows user to represent the data as
documents in different views (formats ex. Charts, tabular,
textual). View(s) are attached to the application frame
window.

SDI Example: Let us say we have a application with name
MySDI..

In SDI application we have following major classes derive.

CMySDIApp-Application class derived from CWinApp.

e) CMainFrame - Frame Window class derived from CFrameWnd

f) CMySDIView - View class derived from CView (Can have
multiple classes)

g) CMainDoc - Document class derived from CDocument.

Above three classes are bind together using a Template
class called as CSingleDocTemplate.

Is This Answer Correct ?    35 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does mfc stand for?

961


Do you have an idea about MFC?

919


How do I create a dialog box in mfc?

613


what is functioning of DIalodDataXchange ..?

1196


what message is sent to an application when the user presses the primary button?

1387






I want recent paper pattern for HP company?

1790


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

1811


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

3346


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

698


how to repaint when working with horizontal scroll bar

1549


plzz tell me what we can do and dont in tally ERP & sap business one?

1882


List out the basic features of MFC.

13703


What is the difference between Struts and JSF? Pls list some most suitable differences.

2847


What is mfc class hierarchy?

623