visual c++ 2010 - Winapi Shell_NotifyIcon - Duplicated icons in Notification Area Icons window -


i´m working on c++ application creates icon in notification area, baloon tip. when user clicks baloon, icon being removed using shell_notifyicon(nim_delete, &nid), msdn instructs do.

the problem notification icon leaves tray, remains in notification area icons window (that window opens when click customize option in windows 7/8´s tray). then, if user restart program, icon duplicated many times program can restarted, if computer being restarted.

i googled , found out removig registry keys, cache can cleaned, explorer.exe needs restarted... not option want put in pratice, many reasons.

my questions are: - have of guys seen before? - there alternative shell_notifyicon (assuming possibility usage of being problem, once i´m not experienced in winapi); - there way force "cache cleanup" in notification area window without restarting explorer.exe?

for can help, gratitude in advance.

indeed, iusernotification2 worked great , problem solved.

i wrote new notification class based on notifu´s examples, using iusernotification2, iquerycontinue , iusernotificationcallback.

thanks helping.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -