A way to ensure that a system tray icon is removed… guaranteed

后端 未结 8 2466
广开言路
广开言路 2021-02-20 10:21

Is there a way to guarantee that your system tray icon is removed?

To add the system tray icon you do:

Shell_NotifyIcon(NIM_ADD, &m_tnd);
         


        
8条回答
  •  离开以前
    2021-02-20 11:02

    You have to handle the applications exit when crashing some way or another or the icon will not disapear.

    Check this out if it can be any help: http://www.codeproject.com/KB/shell/ashsystray.aspx

提交回复
热议问题