Can I re-gain a systray icon of a running app that has gone missing?

后端 未结 3 893
春和景丽
春和景丽 2021-02-03 15:26

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

3条回答
  •  被撕碎了的回忆
    2021-02-03 15:36

    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.

    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.

提交回复
热议问题