O'Reilly logo

Software Engineering and Computer Games by Rudy Rucker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Table 23.7. The application, the document, the frame, and the view in MFC.
Application class MFC parent class Defined in
CPopApp ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required