
Zitat von
woggly4:
Also ich habe das jetzt mit
Delphi-Quellcode:
Icon.Handle;
Shell_NotifyIcon(NIM_Modify, @NIM);
ausprobiert, aber das funktioniert auch irgendwie nicht. Oder weise ich den
handle einfach nur falsch zu?
So wie Du das IconHandle am Anfang ja auch in diese NotifyIconData-Structur geladen hast, genauso musst Du die
Handle der neuen Icon da jetzt auch wieder reinladen, also etwa so:
Delphi-Quellcode:
NotifyIconData.hIcon := neueIconHandle;
Shell_NotifyIcon(NIM_MODIFY, @NotifyIconData);