The design of secondary window functions is very much like the design of dialog window functions. The following table, which lists the secondary window functions, includes the names of PM dialog window equivalent functions.

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³Secondary Window Function   ³PM Dialog Window ³Description                   ³
³                            ³Equivalent       ³                              ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinLoadSecondaryWindow      ³WinLoadDlg       ³Creates a modeless secondary  ³
³                            ³                 ³window from a dialog template ³
³                            ³                 ³in a resource.                ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinSecondaryWindow          ³WinDlgBox        ³Creates a modal secondary     ³
³                            ³                 ³window from a dialog template ³
³                            ³                 ³in a resource DLL and returns ³
³                            ³                 ³the result value established  ³
³                            ³                 ³by the                        ³
³                            ³                 ³WinDismissSecondaryWindow     ³
³                            ³                 ³call.                         ³
³                            ³                 ³WinSecondaryWindow combines   ³
³                            ³                 ³the functions of              ³
³                            ³                 ³WinLoadSecondaryWindow,       ³
³                            ³                 ³WinProcessSecondaryWindow, and³
³                            ³                 ³WinDestroySecondaryWindow.    ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinProcessSecondaryWindow   ³WinProcessDlg    ³Processes a modal secondary   ³
³                            ³                 ³window by dispatching messages³
³                            ³                 ³while the modal window is     ³
³                            ³                 ³displayed.                    ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinDismissSecondaryWindow   ³WinDismissDlg    ³Causes modal                  ³
³                            ³                 ³WinProcessSecondaryWindow or  ³
³                            ³                 ³WinSecondaryWindow calls to   ³
³                            ³                 ³return.                       ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinDestroySecondaryWindow   ³WinDestroyWindow ³Destroys a secondary window.  ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinDefSecondaryWindowProc   ³WinDefDlgProc    ³Provides the default behavior ³
³                            ³                 ³for a secondary window. A     ³
³                            ³                 ³secondary window procedure    ³
³                            ³                 ³must reference this function  ³
³                            ³                 ³for messages that are not     ³
³                            ³                 ³handled explicitly.           ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinCreateSecondaryWindow    ³WinCreateDlg     ³Creates a Secondary Window    ³
³                            ³                 ³from a dialog template in the ³
³                            ³                 ³application's executable file.³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinSecondaryMessageBox      ³WinMessageBox    ³Creates a modal window that   ³
³                            ³                 ³can be used to display error  ³
³                            ³                 ³messages and ask questions.   ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinQuerySecondaryHWND       ³WinQueryWindow   ³Returns either the handle to  ³
³                            ³                 ³the outer frame or inner      ³
³                            ³                 ³dialog window of a secondary  ³
³                            ³                 ³window, depending on the      ³
³                            ³                 ³handle supplied as input.     ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinDefaultSize              ³None             ³Sizes the dialog window to its³
³                            ³                 ³recommended, optimal size.    ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³WinInsertDefaultSize        ³None             ³Adds the Default Size item to ³
³                            ³                 ³the system menu of a secondary³
³                            ³                 ³window.                       ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ


[Back] [Next]