Stop flashing taskbar

I know that I can programmatically make a taskbar item for a certain window, it will start blinking when something changes, but is there any way that I can stop it from programming after a certain period of time, or at least is there a short-term keyboard can i give my users somehow stop blinking?

+3
source share
4 answers

The FlashWindowEx function , which controls the flashing, takes a FLASHWINFO struct, which has a uCount field to control how many times it flashes. In addition, the possible value for the dwFlags field is FLASHW_STOP to stop flashing.

EDIT: #... P/Invoke goodness, .

+4

, . , - .

+4

, tasbar, NotifyIcon. - (- - , ). , .

: (1) NotifyIcon NotifyIcon notify = new NotifyIcon(); (2) (3) , , Visible (4) ShowBalloonText ( 64 )

, , / . , - "Server down down"

+2

@thomas - , Microsoft Windows Vista ...

When the background window starts, its taskbar button is better than automatically switching to the top panel and stealing input focus, the flashing taskbar buttons are still very intrusive. It is difficult for users to concentrate when the button on the taskbar is blinking, so you should assume that users will immediately stop what they are doing to stop the blinking. Consequently, the backup taskbar flashes only for situations requiring immediate attention.

Of course, who knows who actually follows these recommendations ... or who even reads them. :)

+1
source

Source: https://habr.com/ru/post/1696548/


All Articles