[idd] helper/notify: delete icon when exiting

This commit is contained in:
Quantum
2025-09-16 01:02:03 -04:00
committed by Geoffrey McRae
parent 08e54fd1b1
commit 48ab317fa0
2 changed files with 7 additions and 0 deletions

View File

@@ -81,6 +81,12 @@ LRESULT CNotifyWindow::onClose()
return 0; return 0;
} }
LRESULT CNotifyWindow::onDestroy()
{
Shell_NotifyIcon(NIM_DELETE, &m_iconData);
return 0;
}
LRESULT CNotifyWindow::onFinal() LRESULT CNotifyWindow::onFinal()
{ {
PostQuitMessage(0); PostQuitMessage(0);

View File

@@ -20,6 +20,7 @@ class CNotifyWindow : public CWindow
virtual LRESULT handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) override; virtual LRESULT handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
virtual LRESULT onCreate() override; virtual LRESULT onCreate() override;
virtual LRESULT onClose() override; virtual LRESULT onClose() override;
virtual LRESULT onDestroy() override;
virtual LRESULT onFinal() override; virtual LRESULT onFinal() override;
public: public: