VB:游戏顶部的应用程序 [英] VB: Application on Top of a Game
问题描述
我想编写一个应用程序,在全屏游戏上绘制某个视觉对象(例如半透明三角形).该游戏具有强大的顶部"属性,因为它涵盖了归类为顶部"的所有其他应用程序.
I'd like to write an application drawing a certain visual object (e.g. a semi-transparent triangle) over a full-screen game. The game has a "strong on-top" property as it covers all other applications classified as "on top".
我需要我的应用程序是最顶层的应用程序,并且始终保持专注,不影响后面游戏的流畅运行.
I need my application to be the top-most on-top application, and always on focus, without affecting the smooth run of the game behind.
如何有效地完成这项工作?
How can this be efficiently accomplished?
推荐答案
使应用程序始终处于最顶层是不可能的,因为您所做的任何使应用程序位于最顶层的操作,其他应用程序都可以做到.Raymond Chen 对此进行了解释:http://blogs.msdn.com/b/oldnewthing/archive/2011/03/10/10138969.aspx
It is not possible to make an application that is always on top, because anything you do to make your application top-most, another application could do. Raymond Chen explains this: http://blogs.msdn.com/b/oldnewthing/archive/2011/03/10/10138969.aspx
这篇关于VB:游戏顶部的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!