This example uses the WinQuerySysModalWindow to find the handle of the system modal window.

#define INCL_WINWINDOWMGR
#include <OS2.H>

HAB  hab;
HWND hwndDeskTop, hwndSysModal;
LONG lRgbColor;

/*  Input processing can enter a "system modal" state. In */
/*  this state, all pointing  device and keyboard input   */
/*  is directed to a special window, known as the         */
/*  system-modal window. Typically, this will be a dialog */
/*  window requiring input.                               */

hwndSysModal = WinQuerySysModalWindow(hwndDeskTop);


[Back] [Next]