Multiple Document Interface Sample

mdi


Compiling

To compile the example:

Running

After launching the program, a window will be displayed as illustrated above. Selecting "New" from the "File" menu will create a new child window, while selecting "Close" will close the currently selected child window. The options available on the "Window" menu allow positioning of the child windows. Selecting "Exit" from the "File" menu or closing the window manually will exit the program.

Under the Hood

MAIN_WINDOW inherits WEL_MDI_FRAME_WINDOW to provide the multiple document interface behaviour while each child window is of type WEL_MDI_CHILD_WINDOW. When "Close" is selected from the "File" menu, the feature active_window from WEL_MDI_FRAME_WINDOW is used to select the window that must be closed.

This sample contains the following classes:

See Also
Bmpview