Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop the taskbar flashing

I know I can programatically make the taskbar item for a particular window start flashing when something changes, but is there any way I can stop it from flashing either programatically after a certain period of time or at least is there a keyboard shortcur I can give to my users to somehow stop the flashing?

like image 698
lomaxx Avatar asked Aug 27 '08 03:08

lomaxx


1 Answers

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

EDIT: Forgot was a C# tagged question ... so P/Invoke goodness found here.

like image 147
imaginaryboy Avatar answered Sep 28 '22 17:09

imaginaryboy