Ignore:
Timestamp:
Mar 23, 2011, 11:44:45 PM (14 years ago)
Author:
dmik
Message:

shell32: systray: Added support for the "TaskbarCreated" system notificaiton message that Windows broadcasts to all top-level windows when the taskbar (xcenter in case of OS/2) is (re)started. This allows applications supporting this message (including Java applications) recreate their taskbar icons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/systray.c

    r21600 r21602  
    190190
    191191            free(*ptrayItem);
     192
    192193            *ptrayItem = next;
    193194
    194195            return TRUE;
    195196        }
     197
    196198        ptrayItem = &((*ptrayItem)->nextTrayItem);
    197199    }
     
    226228
    227229    return NULL; /* not found */
     230}
     231
     232/*************************************************************************
     233 *
     234 */
     235void SYSTRAY_PruneAllItems(void)
     236{
     237    SystrayItem *ptrayItem = systray;
     238
     239    while (ptrayItem)
     240    {
     241        SystrayItem *next = ptrayItem->nextTrayItem;
     242
     243        TRACE("SYSTRAY_PruneAllItems %p: uIdx %u, hWnd 0x%08x, uID %d\n",
     244              ptrayItem, ptrayItem->uIdx, ptrayItem->notifyIcon.hWnd,
     245              ptrayItem->notifyIcon.uID);
     246
     247        SYSTRAY_ItemTerm(ptrayItem);
     248
     249        free(ptrayItem);
     250
     251        ptrayItem = next;
     252    }
     253
     254    systray = NULL;
    228255}
    229256
Note: See TracChangeset for help on using the changeset viewer.