I am working on and changing some application, and I’ve noticed that at some specific scenario the application starts flashing in the task bar. I’ve checked the application and found a call to FlashWindowEx (a single one), but the code never gets there. In other words, I’m pretty confident Windows itself causes the flashing, and I wonder when does it happen.
An example answer (other than directing me to an article about the issue) is something like “Windows will automatically flash your task bar item if your application lost its focus but is still activated” (which isn’t true at this case, but it’s an example :-)).
The immediate reason for flashing is
FlashWindowAPI call, MSDN specifies:A typical reason of flashing is focus/foreground stealing: