Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If a critical error condition occurs in a program, a visual cue such as flashing a window will more likely draw the user's attention to the problem.  This topic shows how to flash a window every 1/2 second, using the window's TIMER event and the Windows API function FlashWindow().  

The Code

In the window's TIMER event, code the following:

...

The code above will not run until the declaration for FlashWindow() has been added.  To add the declarations, do the following:

...