Now let’s say some things about taking control of the MDI. Let’s review some of the material from the Document-View section of Chapter 5: Software Design Patterns.
As the user’s interface with the program, the CView has two different roles. On the one hand, it’s the user’s channel to the program’s data. And on the other hand, the CView is a graphical Windows object that sits inside two levels of frame windows.
In terms of data, we have the hierarchy shown in Table 23.7. We include the CMainFrame here because we do sometimes keep program data in there.
|Application class||MFC parent class||Defined in|