列出隐藏的纸盘图标 [英] List Hidden Tray Icons

查看:96
本文介绍了列出隐藏的纸盘图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Windows 7开始,默认情况下会隐藏一些任务栏图标.通知区域中有一个显示隐藏的托盘图标按钮(白色的向上小箭头).单击该按钮会打开一个小窗口,并显示隐藏的任务栏图标.

starting with Windows 7 some tray icons are hidden by default. There is a show hidden tray icon button in the notification area (this little white up arrow). When clicked it opens a litttle window and shows the hidden tray icons.

是否有一种方法可以在.NET(或pinvoke)中以编程方式列出所有这些隐藏的图标?

Is there a way to list all this hidden icons programmatically in .NET (or pinvoke)?

我可以在"ToolBarWindow32"中列出图标,但是如何列出隐藏的图标?

I can list the Icons in the "ToolBarWindow32", but how to list the hidden?

非常感谢!

推荐答案

您好

Hi evpwspm,

>>有没有一种方法可以在.NET(或pinvoke)中以编程方式列出所有这些隐藏的图标?

>>Is there a way to list all this hidden icons programmatically in .NET (or pinvoke)?

恐怕没有类或方法可以帮助您在.Net Framework中实现.因此,我建议您使用Win32 API.如果您构建使用C/C ++语言的应用程序.您可以使用来获取图标的状态 Shell_NotifyIcon 方法,然后列出所有隐藏的图标.

I am afraid there is no Class or method to help you implement in .Net Framework. So I would suggest you use Win32 API. If you build application that use C/C++ language. You can get icon’s state by using Shell_NotifyIcon method, then list all hidden icon.

NOTIFYICONDATA 结构包含此信息.

The NOTIFYICONDATA structure contains this information.

这是一个 示例有关如何使用 Shell_NotifyIcon .

Here is a sample about how to use Shell_NotifyIcon.

有关更多信息和官方样本.请参阅 Windows软件开发工具包(SDK)中的  NotificationIcon示例示例,其中提供了有关 Shell_NotifyIcon .

For more information and official sample. Please see the  NotificationIcon Sample sample in the Windows Software Development Kit (SDK) for a full example of the use of Shell_NotifyIcon.

最诚挚的问候,

克里斯汀


这篇关于列出隐藏的纸盘图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆