The secondary window manager provides all the capability of a standard dialog window, but it permits the window to be sizable and automatically formats the window and manages the scroll bars.
The functions that manipulate and control the secondary window are designed to convert easily from the standard dialog manager.
This section describes the secondary window functions and data structures.
The following table lists the secondary window functions.
┌──────────────────────────┬──────────────────────────────────┐ │Function │Description │ ├──────────────────────────┼──────────────────────────────────┤ │WinCreateSecondaryWindow │Creates a secondary window from a │ │ │dialog template in memory. │ ├──────────────────────────┼──────────────────────────────────┤ │WinDefSecondaryWindowProc │Provides the default behavior for │ │ │a secondary window. │ ├──────────────────────────┼──────────────────────────────────┤ │WinDefaultSize │Sizes the window to its default │ │ │size-the optimal size of the │ │ │dialog window. │ ├──────────────────────────┼──────────────────────────────────┤ │WinDestroySecondaryWindow │Eliminates a secondary window. │ ├──────────────────────────┼──────────────────────────────────┤ │WinDismissSecondaryWindow │Causes modal │ │ │WinProcessSecondaryWindow or │ │ │WinSecondaryWindow calls to │ │ │return. │ ├──────────────────────────┼──────────────────────────────────┤ │WinInsertDefaultSize │Adds the default size function to │ │ │the system menu of a secondary │ │ │window. │ ├──────────────────────────┼──────────────────────────────────┤ │WinLoadSecondaryWindow │Creates a secondary window from a │ │ │dialog template in a resource. │ ├──────────────────────────┼──────────────────────────────────┤ │WinProcessSecondaryWindow │Processes a modal secondary window│ │ │by dispatching messages while the │ │ │modal window is displayed. │ ├──────────────────────────┼──────────────────────────────────┤ │WinQuerySecondaryHWND │Returns a window handle to various│ │ │windows created as part of a │ │ │secondary window. │ ├──────────────────────────┼──────────────────────────────────┤ │WinSecondaryMessageBox │Creates a modal window similar to │ │ │WinMessageBox that can be used to │ │ │display error messages and ask │ │ │questions. │ ├──────────────────────────┼──────────────────────────────────┤ │WinSecondaryWindow │Loads and processes a modal │ │ │secondary window and returns the │ │ │result value established by │ │ │WinDismissSecondaryWindow. │ └──────────────────────────┴──────────────────────────────────┘