WinProcessSecondaryWindow
Appearance
This function processes a modal secondary window by dispatching messages while the modal window is displayed.
Syntax
#define INCL_SW #include <os2.h> HWND hwndSW; /* Secondary window handle. */ ULONG rc; /* Result. */ rc = WinProcessSecondaryWindow(hwndSW);
Parameters
- hwndSW (HWND) - input
- Secondary frame window handle to process.
Return Value
- rc (ULONG) - returns
- Returns the result passed to WinDismissSecondaryWindow.
Remarks
Refer to WinProcessDlg in the IBM OS/2 Presentation Manager Programming Reference.
Example Code
The following code illustrates processing a modal secondary window by dispatching messages while the modal window is displayed.
#define INCL_SW
#include <os2me.h>
HWND hwndFrame;
hwndFrame = WinLoadSecondaryWindow (HWND_DESKTOP, /* Parent window */
HWND_DESKTOP, /* Owner window */
MyDlgProc, /* Dialog proc */
NULL, /* Module handle */
ID_DIALOG, /* Resource ID */
NULL); /* Create params */
WinProcessSecondaryWindow (hwndFrame);