An MDI (Multiple Document Interface) parent frame is a window which can contain MDI child frames in its client area which emulates the full desktop.
MDI is a user-interface model in which all the window reside inside the single parent window as opposed to being separate from each other. It remains popular despite dire warnings from Microsoft itself (which popularized this model in the first model) that MDI is obsolete.
An MDI parent frame always has a
The appearance of MDI applications differs between different ports. The classic MDI model, with child windows which can be independently moved, resized etc, is only available under MSW, which provides native support for it. In Mac ports, multiple top level windows are used for the MDI children too and the MDI parent frame itself is invisible, to accommodate the native look and feel requirements. In all the other ports, a tab-based MDI implementation (sometimes called TDI) is used and so at most one MDI child is visible at any moment (child frames are always maximized).
Although it is possible to have multiple MDI parent frames, a typical MDI application has a single MDI parent frame window inside which multiple MDI child frames, i.e. objects of class
Styles
This class supports the following styles:
There are no special styles for this class, all
See:
This class is derived (and can use functions) from:
wxWidgets docs:
Default constructor.
Use
Constructor, creating the window.
Notice that if you override virtual
Under wxMSW, the client window will automatically have a sunken border style when the active child is not maximized, and no border style when a child is maximized.
See:
Destructor.
Destroys all child windows and menu bar if present.
Activates the MDI child following the currently active one.
The MDI children are maintained in an ordered list and this function switches to the next element in this list, wrapping around the end of it if the currently active child is the last one.
See:
Activates the MDI child preceding the currently active one.
See:
Arranges any iconized (minimized) MDI child windows.
This method is only implemented in MSW MDI implementation and does nothing under the other platforms.
See:
Arranges the MDI child windows in a cascade.
This method is only implemented in MSW MDI implementation and does nothing under the other platforms.
See:
Used in two-step frame construction.
See
Returns a pointer to the active MDI child, if there is one.
If there are any children at all this function returns a non-NULL pointer.
Returns a pointer to the client window.
See:
Tiles the MDI child windows either horizontally or vertically depending on whether
This method is only implemented in MSW MDI implementation and does nothing under the other platforms.