Function:
FlashWindow (HWNDhWnd,BOOLbInvert)

 

Description:
Flashes a window one step. Flashing is where the title bar of the window is switched from an active to inactive look (or vice versa) to get the user's attention.

 

Parameters:
hWnd: Identifies the window to be flashed. The window can be either open or minimized (iconic).

bInvert: Specifies whether the window is to be flashed or returned to its original state. The window is flashed from one state to the other if this parameter is TRUE. If it is FALSE, the window is returned to its original state (either active or inactive). When an application is iconic (minimized), if this parameter is TRUE, the taskbar window button flashes active/inactive. If it is FALSE, the taskbar window button flashes inactive, meaning that it does not change colors. It flashes, as if it were being redraw, but it does not provide the visual invert clue to the user.

 

Returns:
The function returns 0 if the window's look was inactive before flashing, or 1 if its look was active.

 

Example:
Click on the calc icon to view a sample of the FlashWindow function.