应用程序如何在 Windows 任务栏上显示对象?
有几个应用程序在 Windows 任务栏上显示对象,但没有实现 IDeskBand 接口。例如,Lenovo 电池计量表和Notebook BatteryInfo。
例如:
笔记本电池信息 http://home.arcor.de/batteryinfogateway/img/taskbar_new .png
在上图中,任务栏上的对象由应用程序放置在那里,并在应用程序关闭时消失。这与 IDeskBand 不同,后者的 COM 对象是由 explorer.exe 直接加载的。
在 Windows 中可以使用什么 API/方法来实现这一点?
There are several applications around that display objects on the Windows taskbar but do no implement the IDeskBand interface. For example, the Lenovo batter meter and Notebook BatteryInfo.
For example:
Notebook BatteryInfo http://home.arcor.de/batteryinfogateway/img/taskbar_new.png
In the picture above, the object on the taskbar is put there by the application and disappears when the application closes. This is different than IDeskBand in which the COM object is loaded directly by explorer.exe.
What API/Method can be used in Windows to accomplish that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它称为“appbars”。您需要使用 Shell API 编写一个模块,并让用户使用 Shell 注册它。请注意,如果用户运行 x64 操作系统,您的模块也需要是 64 位,这通常意味着当您分发实用程序时,必须有 32 位和 64 位版本。
Win7 有一个更灵活的界面,称为“任务栏扩展”
It's called "appbars". You'll need to write a module using Shell API and have the user register it with Shell. Please not that in case the user is running x64 OS, your module also needs to be 64-bit, which generally means that when you distribute your utility, there has to be both 32-bit and 64-bit versions of it.
Win7 has a much more flexible interface for this, called "taskbar extensions"