How to always show program tray icons in Windows by *default*?

前端 未结 3 2037
旧时难觅i
旧时难觅i 2020-12-16 18:36

If a program is executed for the first time in Windows 7, it automatically hides the icon. Is there any manifest setting or option to force Windows 7 to always show the icon

3条回答
  •  渐次进展
    2020-12-16 19:18

    It's certainly not "impossible". There is an undocumented COM interface ITrayNotify for retrieving tray icons and changing their visibility, used by Explorer itself. Full C++ source here: http://thread0.me/tag/windows/

    Of course, using an unofficial API is risky and Windows 8 has intoduced breaking changes to this API, which means you have to use 2 different definitions for XP - Win7 and Win8 - Win10. But hey, even Chrome uses this trick. Just be sure to handle failures properly.

提交回复
热议问题