FLASHWINFO structure (winuser.h)

Contains the flash status for a window and the number of times the system should flash the window.

Syntax

typedef struct {
  UINT  cbSize;
  HWND  hwnd;
  DWORD dwFlags;
  UINT  uCount;
  DWORD dwTimeout;
} FLASHWINFO, *PFLASHWINFO;

Members

cbSize

The size of the structure, in bytes.

hwnd

A handle to the window to be flashed. The window can be either opened or minimized.

dwFlags

The flash status. This parameter can be one or more of the following values.

Value Meaning
FLASHW_ALL
0x00000003
Flash both the window caption and taskbar button. This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.
FLASHW_CAPTION
0x00000001
Flash the window caption.
FLASHW_STOP
0
Stop flashing. The system restores the window to its original state.
FLASHW_TIMER
0x00000004
Flash continuously, until the FLASHW_STOP flag is set.
FLASHW_TIMERNOFG
0x0000000C
Flash continuously until the window comes to the foreground.
FLASHW_TRAY
0x00000002
Flash the taskbar button.

uCount

The number of times to flash the window.

dwTimeout

The rate at which the window is to be flashed, in milliseconds. If dwTimeout is zero, the function uses the default caret blink rate.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header winuser.h (include Windows.h)

See also

FlashWindowEx