6996708: The event on the tray icon does not trigger and there is no message printed.
authordcherepanov
Thu, 24 Feb 2011 13:01:01 +0300
changeset 8511 03f27f19986c
parent 8369 d835f77a7f86
child 8512 fde784daa420
6996708: The event on the tray icon does not trigger and there is no message printed. Reviewed-by: art, ant
jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp
--- a/jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp	Wed Feb 16 01:12:53 2011 +0300
+++ b/jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp	Thu Feb 24 13:01:01 2011 +0300
@@ -200,10 +200,9 @@
             m_nid.cbSize = (BYTE *)(&m_nid.guidItem) - (BYTE *)(&m_nid.cbSize);
             break;
         case 6: // WIN_XP
-            // Uncomment these two lines when moving to VS2008
-//            m_nid.cbSize = (BYTE *)(&m_nid.hBalloonIcon) - (BYTE *)(&m_nid.cbSize);
-//            break;
-        default: // WIN_VISTA?
+            m_nid.cbSize = (BYTE *)(&m_nid.hBalloonIcon) - (BYTE *)(&m_nid.cbSize);
+            break;
+        default: // WIN_VISTA
             m_nid.cbSize = sizeof(m_nid);
             break;
     }