即使在全屏游戏中也始终处于领先地位 [英] Always on top, even in fullscreen-games
问题描述
如何将 Windows 窗体应用程序置于屏幕上的所有内容之上?
How do you put a Windows Form Application on top off everything on your screen?
当您运行全屏游戏时,仅设置 topmost-property 是不够的.
Just setting the topmost-property isn't enough when you're running fullscreen games.
如果有人有好的旧表单的解决方案,我也会很高兴
If anyone has a solution for good old Forms i'll also be happy
我在这个论坛上看到很多帖子都说这是不可能的,但我知道这不是因为我见过很多应用程序(fraps、teamspeak 覆盖、xfire 等)可以做到这一点.
I've seen many posts on this forum that say it's impossible but i know it's not couse i've seen alot of apps (fraps, teamspeak overlay, xfire, etc) that does this.
推荐答案
如果您想使用图形库来始终在屏幕上显示某些内容,您可能需要启动 这里是SO.有可用的包装库,例如用于 OpenGL 的 OpenTK.如果您想使用 DirectX 路线,您需要加载 C++ 库并使用 P/Invoke 访问它们.有一个很好的教程可以从 on msdn.DirectX 的包装器也以 SharpDX 的形式存在.
If you want to use a graphics library to display something always on screen, you may want to start here on SO. There are wrapper libraries available like OpenTK for OpenGL. If you want to go the DirectX route you'll need to load in the C++ libraries and access them using P/Invoke. There's a good tutorial to start with on msdn. Wrappers for DirectX also exist in the form of SharpDX.
这篇关于即使在全屏游戏中也始终处于领先地位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!