How can I programmatically determine if an application is flashing in the taskbar

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 14:19:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!