提交 3c357034 编写于 作者: D dcherepanov

6996708: The event on the tray icon does not trigger and there is no message printed.

Reviewed-by: art, ant
上级 cd62ed16
......@@ -200,10 +200,9 @@ void AwtTrayIcon::InitNID(UINT uID)
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册