flashwindowex

How to detect if window is flashing

Deadly 提交于 2020-01-13 14:05:40
问题 I'm using FlashWindowEx() to flash an application window when it needs to attract a user's attention. The window caption and taskbar button flashes continuously until the application receives focus. How can I check whether the application is currently flashing (i.e. has not received focus since it was instructed to flash). 回答1: Here are two possible solutions. One uses WH_SHELL, and one uses a NativeWindow. You will have to provide your own extension method ( FlashWindow() ) to start the

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