我可以重新获得已经失踪的正在运行的应用程序的系统管理员图标吗? [英] Can I re-gain a systray icon of a running app that has gone missing?

查看:210
本文介绍了我可以重新获得已经失踪的正在运行的应用程序的系统管理员图标吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我终于得到了这个问题的答案:您可以向Windows资源管理器发送一个信号,以使其刷新系统图标,这些图标要求删除死路由器图标,我想要求

Since I've finally got an answer for this question: Can you send a signal to windows explorer to make it refresh the systray icons, that asks about getting rid of dead systray icons, I would like to ask for the opposite.

有没有办法轻推一个应用程序来重新显示它的系统图标,如果它已经丢失了?

Is there a way to "nudge" an application to re-show it's systray icon if it has been lost?

自从我安装Avira AV以来,我的Apache Monitor发生了这个事情。

确定,这只能是一个副作用,但是让运行的应用程序杀死一个然后重启它只是因为它没有正确显示系统图标。

It happens to my Apache Monitor ever since I install Avira AV.
Ok, granted, it could only be a side effect, but it's quite annoying to have the running app killed an then restart it, just because it's not displaying the systray icon correctly.

提前感谢,

Gus

Thanks in advance,
Gus

推荐答案

我已经编写了一个将TaskbarCreated消息发送到系统中所有顶级窗口的项目。如果他们已经注册了一个托盘图标,那应该导致它们在浏览器崩溃后恢复图标。

I've written a project that sends a TaskbarCreated message to all of the top-level windows in the system. If they've registered a tray icon, that should cause them to restore the icon after explorer has crashed.

我发布了源代码,并提供了一个链接到编译的控制台应用程序(与Lazarus)在自述文件。

I've released the source under the MIT license, and provided a link to the compiled console application (with Lazarus) in the readme file.

肯定有一些可以做出的改进,发送消息,如果图标已知在托盘已经,但现在这个应用程序导致我知道在浏览器崩溃时丢失的图标重新出现。

There are certainly a few refinements that could be made, like not sending the message if the icon is known to be in the tray already, but for now this app causes the icons that I know go missing on an Explorer crash to reappear.

这篇关于我可以重新获得已经失踪的正在运行的应用程序的系统管理员图标吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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