I. Introduction
MFC encapsulates functionality Win32 API, OLE API, ODBC API functions like the bottom, and provide a higher level interface, simplifying the Windows programming, while the MFC support direct calls the API of the underlying
MFC is a C ++ class library, by using, inheritance, and expansion of the respective classes to implement the function, the application-specific event handled by a derived class, the base class are not of interest to process
MFC application overall structure of the derived classes and several implementations CWinApp MFC class of the class object (the application object) consisting of
The main MFC include files Afxwin.h
Two .MFC initialization
Reference: MFC: MFC initialization
Three .MFC set of classes
Four .MFC framework
Based MFC application framework is Document / View architecture, the results depend on the data document object stored application, and rely on the control data view object view.
1. Based on Dialog (Dialog)
Reference: MFC: Dialog-based
2. Based on the SDI (Single Document Interface)
SDI applications allow only a development framework document window, an application can only see a data, can not be switched, similar to Notepad
Reference: MFC: based on single document (SDI)
3. Based on MDI (Multiple Document Interface)
MDI application allows a variety of development documentation frame window, one can see the multiple application data may be switched, similar to the word
Reference: MFC: based on Multiple Document (MDI)