I have always been a puzzled if you read someone else's MFC program.
There was a slight awakening today.
What's Q:MFC?
A:MFC is a class library.
*************
Q:MFC What kind of library?
A MFC is the class library for encapsulating APIs
xxxxxxxx
What is the fuse of Q:MFC?
A:theapp
Xxxxxxxxxxxxxxxxxxxxxxx
The above is the background information.
So the first step to understand the procedure:
Familiar with MFC class architecture The seven aunt of the MFC family to be clear, who is the son of who? Whose grandson is that? Who is the distant cousin of who? It must be clear.
MFC is like a big family, some of which are biological and some of them are wrapped up to be familiar with the good.
The second step to understand the procedure:
There are some programs in MFC that write their own classes, some of which are completely not related to MFC. I call it the MFC family of guests, some in the programmer to match the remaining son grandson, I became a new generation.
Read procedure step three: Know the six Mechanisms of MFC
Understand the procedure fourth step: Follow the fuse to the program in the heart run again.
PostScript: To extract the framework of the program, finish the work ..... To! Dry this cup of Erguotou ...
How to look at MFC programs