[英]How do I inform other applications that my application is a part of the Windows desktop?
I would like to create a "toolbar" for windows in c# and would like to fit it the in top space of the Windows desktop. 我想在c#中为windows创建一个“工具栏”,并希望将其放在Windows桌面的顶部空间中。
I would like the other windows program not be able to overlay my application. 我希望其他Windows程序无法覆盖我的应用程序。 I also want other applications to treat my window as a part of the desktop so that when they maximize, you can still see my application.
我还希望其他应用程序将我的窗口视为桌面的一部分,这样当它们最大化时,您仍然可以看到我的应用程序。
You can create what is called an Application Desktop Toolbar. 您可以创建所谓的Application Desktop工具栏。 Your application will essentially communicate with the Windows Shell (and, consequently, other applications) to instruct the desktop how it should interact with your application.
您的应用程序将基本上与Windows Shell(以及其他应用程序)进行通信,以指示桌面应如何与您的应用程序进行交互。
This type of functionality is not built into .Net, but there's an excellent tutorial available to do this on Code Project . 这种类型的功能没有内置到.Net中,但是有一个很好的教程可以在Code Project上执行此操作。
使用Windows窗体设计器中的工具栏控件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.