VirtualBox

Changeset 23057 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 16, 2009 9:43:07 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52383
Message:

VBoxTray: Refresh system tray after deleting icon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r23055 r23057  
    488488    Log(("VBoxTray: Returned from main loop, exiting ...\n"));
    489489
    490     /* remove the system tray icon */
     490    /* remove the system tray icon and refresh system tray */
    491491    Shell_NotifyIcon(NIM_DELETE, &ndata);
     492    HWND hTrayWnd = FindWindow("Shell_TrayWnd", NULL); /* We assume we only have one tray atm */
     493    HWND hTrayNotifyWnd = FindWindowEx(hTrayWnd, 0, "TrayNotifyWnd", NULL);
     494    if (hTrayNotifyWnd)
     495        SendMessage(hTrayNotifyWnd, WM_PAINT, 0, NULL);
    492496
    493497    Log(("VBoxTray: waiting for display change thread ...\n"));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette