简体   繁体   English

如何绘制全屏应用程序

[英]How can I draw over a full screen application

I want to make a program to display information while I'm in another full screen application. 我想制作一个程序来显示我在另一个全屏幕应用程序中的信息。 Something like: show what song is playing(from Winamp) while in Starcraft II. 类似于:在星际争霸II中显示正在播放的歌曲(来自Winamp)。

How would I got about doing that? 我怎么会这样做?

I would start by creating a new window with the topmost flag set. 我首先创建一个设置了最顶部标志的新窗口。 I think that will do what you want. 我想这会做你想要的。 You might have to manually move that window to the top of the topmost z order with a call to SetWindowPos. 您可能必须通过调用SetWindowPos手动将该窗口移动到最顶层的z顺序的顶部。 (SetWindowPos is a win32 call, but you can pInvoke it from C# if needed.) (SetWindowPos是一个win32调用,但如果需要,你可以从C#中调用它。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM