The FlashWindow function flashes the specified window once, whereas the FlashWindowEx function flashes a specified number of times.
BOOL FlashWindow(
HWND hWnd, // handle to window to flash
BOOL bInvert // flash status
);
The return value specifies the window's state before the call to the FlashWindow function. If the window was active before the call, the return value is nonzero.
If the window was not active before the call, the return value is zero.
Flashing a window means changing the appearance of its caption bar as if the window were changing from inactive to active status, or vice versa. (An inactive caption bar changes to an active caption bar; an active caption bar changes to an inactive caption bar.)
Typically, a window is flashed to inform the user that the window requires attention but that it does not currently have the keyboard focus.
The FlashWindow function flashes the window only once; for repeated flashing, the application should create a system timer.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Errors Overview, Error Functions