有没有办法将应用程序覆盖在全屏程序上? [英] Is there a way to overlay an application over a full-screened program?

查看:41
本文介绍了有没有办法将应用程序覆盖在全屏程序上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,它本质上是一个计时器窗口,它始终显示在任何其他应用程序前面的屏幕上,并且在聚焦其他窗口时永远不会落入背景.例如,当我玩全屏游戏时,我希望此计时器覆盖游戏,但当我单击窗口上的计时器按钮时,它不会关闭游戏.

I am looking to develop an application which is essentially a timer window which is always shown on the screen in front of any other application and never falls to the background when focusing other windows. An example is when I play a full-screen game I would like this timer to be overlaying the game and when I click the timer buttons on the window it does not close the game.

有什么想法可以在 C#/java/C++ 中实现吗?

Any ideas how I can achieve this in C#/java/C++?

谢谢

推荐答案

C#:尝试设置窗口(窗体)的 AlwaysOnTop 属性
java:在框架或对话框上调用setAlwaysOnTop(true)

C#: try setting the AlwaysOnTop property of the window (form)
java: call the setAlwaysOnTop(true) on the frame or dialog

这篇关于有没有办法将应用程序覆盖在全屏程序上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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