QQ任务栏闪烁如何实现

来源:百度知道 编辑:UC知道 时间:2024/06/22 17:23:04
不是托盘图标的闪烁
是聊天窗口最小化时,有人发消息来那种

FlashWindow()函数

FlashWindow
The FlashWindow function flashes the specified window one time. It does not change the active state of the window.

To flash the window a specified number of times, use the FlashWindowEx function.

BOOL FlashWindow(
HWND hWnd, // handle to window
BOOL bInvert // flash status
);
Parameters
hWnd
[in] Handle to the window to be flashed. The window can be either open or minimized.
bInvert
[in] 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 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