This example uses WinFlashWindow to flash an inactive window to draw the user's attention to an important message in the window.
#define INCL_WINFRAMEMGR /* Window Frame Functions */ #define INCL_WINDIALOGS /* Window Dialog Mgr Functions */ #include <os2.h> BOOL fSuccess; /* Success indicator */ HWND hwnd; /* window handle */ /* flash window to get user's attention */ fSuccess = WinFlashWindow(hwnd, TRUE); /* vital message is displayed */ WinMessageBox(HWND_DESKTOP, hwnd, /* client-window handle */ "Important message: must be seen by user",/* message */ "Vital message", /* title of the message */ 0, /* message box id */ MB_NOICON | MB_OK); /* icon and button flags */