获取有关Windows 7中隐藏任务栏图标的信息 [英] Get information about hidden tray icons in windows 7

查看:75
本文介绍了获取有关Windows 7中隐藏任务栏图标的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取Windows 7中系统托盘图标的信息.我只能在用户推荐的通知区域" ToolBarWindow32中的可见图标上获取信息.但是如何获取有关隐藏图标的信息?

I am trying to get information on the system tray icons in windows 7. I am able to do so only on the visible icons in the 'User Promoted Notification Area' ToolBarWindow32. but how can I get information on the hidden icons ?

推荐答案

我刚刚使用Inspect SDK工具来探索系统托盘的UI自动化树,并且看起来树中没有任何元素代表溢出区域中的UI,或者图标已经被显式关闭.用户.有时 UI提供程序可能仍在屏幕上不可见的UI的树中具有元素(并为元素提供"IsOffscreen"属性为true,),但是其他提供程序可能决定仅在UI可见时才公开UIA树元素.上 屏幕.

I’ve just used the Inspect SDK tool to explore the UI Automation tree for the system tray, and it looks like there are no elements in the tree representing UI in the overflow area, or icons that have been explicitly turned off by the user. Sometimes UI providers might still have elements in the tree for UI that’s not visible on the screen, (and give elements an “IsOffscreen” property of true,) but other providers might decide to expose UIA tree elements only when the UI is visible on the screen.

在隐藏的系统托盘图标的情况下,树中似乎没有任何元素.提供程序可能已经决定这样做,因为如果元素在树中,则UIA客户端可能希望元素上的所有UIA属性都是当前的.所以 如果显示隐藏的电源图标,则客户可能希望该名称反映当前的电源级别和电源.但是,如果用户决定,提供者不采取措施使所有这些属性保持最新是合理的 在屏幕上不显示用户界面.

It looks like in the case of the hidden systray icons, there are no elements in the tree. The provider might have decided to do that because if the elements were in the tree, UIA clients might expect all the UIA properties on the element to be current. So in the case of a hidden Power icon say, a client might expect the name to reflect the current power levels and power source. But it’s reasonable for the provider to not take the action to keep all these properties current if the user’s decided to not have the UI shown on the screen.

谢谢


这篇关于获取有关Windows 7中隐藏任务栏图标的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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