23.10. The multiple document interface layouts
The MDI hierarchy
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 |
---|---|---|
CPopApp ... |
Get Software Engineering and Computer Games now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.