[idd] helper/notify: correctly handle menu dismissal

This commit is contained in:
Quantum
2025-09-16 01:05:25 -04:00
committed by Geoffrey McRae
parent 4585362f54
commit b504627145

View File

@@ -92,6 +92,7 @@ LRESULT CNotifyWindow::onNotifyIcon(UINT uEvent, WORD wIconId, int x, int y)
switch (uEvent)
{
case WM_CONTEXTMENU:
SetForegroundWindow(m_hwnd);
switch (TrackPopupMenu(m_menu, TPM_RETURNCMD | TPM_NONOTIFY, x, y, 0, m_hwnd, NULL))
{
case ID_MENU_SHOW_LOG: