问题
Im developing an application and use FlashWindowEx to flash the update window however it always manages to steal focus from full screen applications like games and such.
This is not what i want and is very annoying. Is there any way to work out whats causing it to steal focus (tried commenting out FlashWindowEx but it still did) or a way to tell it not to steal focus.
This happens on all versions of windows (including 7) and the game is launched seperatly to the application.
回答1:
Check out the WS_EX_NOACTIVATE window style perhaps?
来源:https://stackoverflow.com/questions/6406000/my-application-stealing-focus