简体   繁体   English

如何通知其他应用程序我的应用程序是Windows桌面的一部分?

[英]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.

相关问题 我是否需要为Windows Phone 8和Windows 8桌面创建单独的应用程序? - Do I need to create separate applications for windows phone 8 and windows 8 desktop? 如何以编程方式更改我的 Windows 桌面墙纸? - How do I change my Windows desktop wallpaper programmatically? 如何通知托管DLL有关托管应用程序类型的信息 - How can I inform my managed DLL about my managed application types 如何处理Windows应用程序中的错误 - How Do I Handle errors in Windows Applications 如何从Windows CE移动设备访问文件到我的桌面应用程序? - How Can I access File from Windows CE mobile to my desktop application? 当应用程序以shell身份运行时,如何在桌面模式下启动Windows 7资源管理器? - How do I start windows 7 explorer in desktop mode when an application is runnig as shell? 使用C#winforms与Windows中的其他桌面应用程序进行交互 - Interact with other desktop-applications in windows using C# winforms 如何在Windows 7中将自己的项目添加到最小化应用程序的上下文菜单中? - How do I add my own items to the context menu of minimized applications in Windows 7? Windows IoT应用程序可检测正在运行的其他应用程序 - Windows IoT Application to detect other applications running 如何在 Windows 10 桌面应用程序中隐藏 WPF 中的任务栏? - How do you hide the taskbar in WPF in a Windows 10 Desktop application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM