21.2 Initializing a Multiple Document Interface Application

The first place in which an MDI application differs from a normal Windows application is in the initialization process. Although the overall process is the same, an MDI application requires that you set certain values in the window class structure.

To initialize an MDI application, you first register its window classes (if there is no previous instance of the application) just as you would for a normal application. You then create and display any windows that will be initially visible.