Browse Source

fix for tray icon after showing balloon tooltip

scott brogden 8 years ago
parent
commit
6a7630867a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      NTray.cpp

+ 1 - 1
NTray.cpp

@@ -1109,7 +1109,7 @@ LRESULT CTrayNotifyIcon::OnTrayNotification(WPARAM wParam, LPARAM lParam)
   BOOL bDoubleClick = FALSE;
   BOOL bSingleClick = FALSE;
   UINT nIconID = 0;
-  if ((m_NotifyIconData.uVersion == 0) || (m_NotifyIconData.uVersion == NOTIFYICON_VERSION))
+  if ((m_NotifyIconData.uVersion == 0) || (m_ShellVersion >= Version5))
   {
     nIconID = static_cast<UINT>(wParam);
     bShowMenu = (lParam == WM_RBUTTONUP);