The following code illustrates how to load and process a modal secondary window and returns the result value established by WinDismissSecondaryWindow.

   #define INCL_SW
   #include <os2me.h>

   ULONG Result;

   Result  =  WinSecondaryWindow (HWND_DESKTOP,
                                  HWND_DESKTOP,
                                  MyDlgProc,
                                  NULL,
                                  ID_DIALOG,
                                  NULL);


[Back] [Next]