Home > Net >  Make windows icon blink on taskbar
Make windows icon blink on taskbar

Time:01-24

We can SetForegroundWindow for a window.

Is there a function to make its icon blinking a number of times on taskbar ?

I have tried things like SetActiveWindow and ShowWindow, to no avail.

CodePudding user response:

Try using this https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-flashwindow

Remarks 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.

  •  Tags:  
  • Related