问题
I can use "FlashWindowEx" to make a window flash in the taskbar, but what can I call to determine if that has been done to a window? Is there a flag that gets set somewhere that I can query?
回答1:
It's seems that such thing is not possible. However, there may be workarounds. For example, you may keep a boolean variable "flash = false". Then set it to "true" when you call FlashWindowEx and set to "false" in the situations in which applications typically gain focus.
References:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1846008&SiteID=1
来源:https://stackoverflow.com/questions/309189/how-can-i-programmatically-determine-if-an-application-is-flashing-in-the-taskba