How to detect if window is flashing
问题 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