Today is 2004-8-2, with MFC for several years. This project I focus on the human-machine interface, research interface development, decided to use the special interface based on MFC, this time, I picked up the MFC, I found that there are still many of the MFCs I want to go to humbly, the place where the study. The outer table of MFC seems to feel simple. The frame is ready-made, cwinapp, is the main program, if you use CDIALOG as the main window, A dialog will pop up. If you use CMAInframe as the main window, you will help you complete your own program, you will have trouble. The dialog is troublesome, there is no ready-to-use support interface update, menu, tool Bar, status bar, you need to write some code to add them in, trouble. But in general, it is not difficult. To write a program with MFC, it is really easy, and MFC has a bunch of assist classes, such as Carray, Csocket, etc., help us develop network applications, database applications, file I / O, and data structure operation. Let our development have been simpler.
But when I unveiled the epidermis, I found that MFC was so complex when I was launched by MS's system design creative and architecture. From cwinapp, I saw the document template to document, view, frame window Organization, management, see the management of CFrameWnd, the management of the subframe window, and the design of the interface update method, as well as the status object of each thread, contains the resources of the program, the window handle of the interface. I realized that MFC It is a set of integrity and complex systems that help developers quickly build procedures. Not a simple class library.
From today, I will conduct MFC learning again. The focus of learning is in the MFC program framework. And the purpose of the design method, the benefits and disadvantages of the design method. The purpose is to figure out, the program main line, the program body logic And the relationship between the objects and data objects of each interface.
Every day's learning will be recorded here. Of course, the order may be more chaotic. Finally, let it.
I wish you a successful completion of this plan.