changeset 3781:df0de56682b7

6996708: The event on the tray icon does not trigger and there is no message printed. Reviewed-by: art, ant
author dcherepanov
date Thu, 24 Feb 2011 13:01:01 +0300
parents 7c98b6b4e8a7
children 75d8c1200df8
files src/windows/native/sun/windows/awt_TrayIcon.cpp
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_TrayIcon.cpp	Wed Feb 16 01:12:53 2011 +0300
+++ b/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;
     }