News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Change system tray icon

Started by 0x401000, November 08, 2009, 10:09:05 PM

Previous topic - Next topic

0x401000

is there a way to change an icon in system tray??  ::)

2-Bit Chip

BOOL Shell_NotifyIcon(     
    (DWORD) NIM_MODIFY,
    (PNOTIFYICONDATA) lpdata
);


Just use the orginal NOTIFYICONDATA structure you used before, but just edit lpdata.hIcon.

0x401000

This is in my program, but I mean, change the icon of another program in the tray. For example, the Internet connection icon changed or the icon to change the sound volume

fearless

A resource editor could be an option. Just open up the dll or exe that contains the icon you want to change (make a backup first just in case) with a resource editor, and change the icon.
ƒearless

0x401000

Not quite what I meant, you need a running connection icon on the Internet, to change dynamically on your own. So you need to put a hook and expose their data icons, or have any other option then