Classes: wxDialogBox, wxEnhDialogBox
A dialog box is similar to a panel, in that it is a window which can be used for placing panel items, with the following exceptions:
Under XView, some panel items may display incorrectly in a modal dialog, and two modal dialogs may not be open simultaneously. This can be corrected using a patch (see install/install.txt and install/xview.txt).
Under implementations that permit it, wxDialogBox inherits from wxCanvas via wxPanel, and has a wxPanelDC that the application can draw on.
The panel device context associated with wxDialogBox behaves slightly differently than for a panel or canvas: drawing to it requires enclosing code in BeginDrawing, EndDrawing calls. This is because under Windows, dialog box device contexts are not 'retained' and settings would be lost if the device context were retrieved and released for each drawing operations.
Under Windows 3, modal dialogs have to be emulated using modeless dialogs and a message loop. This is because Windows 3 expects the contents of a modal dialog to be loaded from a resource file or created on receipt of a dialog initialization message. This is too restrictive for wxWindows, where any window may be created and displayed before its contents are created.
For a set of dialog convenience functions, including file selection, see Dialog functions.
See also wxPanel and wxWindow for inherited member functions.