我的应用程序窃取重点 [英] My application stealing focus

查看:213
本文介绍了我的应用程序窃取重点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个应用程序,并使用FlashWindowEx来刷新更新窗口,但它总是设法从全屏幕应用程序,如游戏等窃取焦点。

这不是我想要的,而且很烦人。有没有什么办法来解决什么导致它窃取焦点(尝试注释掉FlashWindowEx,但它仍然)或一种方法来告诉它不要窃取焦点。



发生在所有版本的Windows上(包括7),并且游戏被独立地启动到应用程序中。 解决方案

检查WS_EX_NOACTIVATE窗口风格也许?

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.

解决方案

Check out the WS_EX_NOACTIVATE window style perhaps?

这篇关于我的应用程序窃取重点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆