FLASHWINFO structure
Applies to: desktop apps only
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.
- 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 cursor blink rate.
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 3/6/2012
Possible bug with FLASHW_STOP and Windows 7
I have Win7 64bit SP1 - not sure about other platforms
If FlashWindowEx is called with only the FLASHW_STOP set, you might expect that uCount and dwTimeout would be ignored. However, if the window is not the foreground window when FlashWindowEx is called, the program's application button in the tool tray will suddenly turn orange after the combination of uCount and dwTimeout expires. For example, I had uCount set to 5 and dwCount set to 1000, and the taskbar icon turned orange after about 5 seconds.
This occurs even if your application only ever calls FlashWindowEx() once, with FLASHW_STOP, 5, 1000, for example.
Setting both uCount and dwTimeout to zero when using the FLASHW_STOP flag seems to solve this issue.
- 12/7/2011
- dsmtoday
FLASHWINFO
typedef struct {
UINT cbSize;
HWND hwnd;
DWORD dwFlags;
UINT uCount;
DWORD dwTimeout;
} FLASHWINFO, *PFLASHWINFO
UINT cbSize;
HWND hwnd;
DWORD dwFlags;
UINT uCount;
DWORD dwTimeout;
} FLASHWINFO, *PFLASHWINFO