Tray Icon support [Archive] - Quintessential Forum

PDA

View Full Version : Tray Icon support


acozz
06-20-2005, 01:17 PM
At one time I was looking into writing a plugin that would show a balloon from the tray icon on track change, but I found it uncompletable due to a lack of support from the PDK.

Two things I'd like to see in the PDK would be an op to tell me whether the tray icon is currently displayed or not (can't show a balloon from a non-existant icon) and an op to get the ID for the icon.

I don't know much of shell programming so I may have just been doing something stupid while trying.

This is what I tried (I was just trying to change the mouseover tooltip of the icon to test if I could manipulate it):
NOTIFYICONDATA iconData = {0};
iconData.cbSize = sizeof(NOTIFYICONDATA);
iconData.hWnd = hwndPlayer;
iconData.uID = 1; // how do you find this? tried 0 and 1
iconData.uFlags = NIF_TIP;
char tooltipText[] = "zomg";
lstrcpy(iconData.szTip, tooltipText);

// this will return with a failed return code
Shell_NotifyIcon(NIM_MODIFY, &iconData)

Tokelil
06-20-2005, 01:32 PM
As said in (unread?) PM, then ID to use is 32771. (But I guess this could change in the future, though my guess is it is quite stable to use)

ulmas
07-20-2005, 10:19 PM
Hey! Just look at this, this thread dates back to Nov 2003, where acozz says he wants to write the plugin, and now, July (June?) 2005, the plug-in is finally released!

A great plugin, I should note! And many are agree with me as I could see in the forums and plugins page!

BALTY
07-26-2005, 07:44 PM
Hey! Just look at this, this thread dates back to Nov 2003, where acozz says he wants to write the plugin, and now, July (June?) 2005, the plug-in is finally released!

A great plugin, I should note! And many are agree with me as I could see in the forums and plugins page!
Hmmm.
Are you referring to this thread. Mine says 6-20-2005 on his @ 8:17 AM. But I have been noticing odd times listed when people post!
Like today's postings showed me 1 or 2 PM when it was still morning.
So It wouldn't surprise me if you/I http://www.planetsmilies.com/smilies/confused/confused0018.gif weren't/aren't seeing things!
FYI; I posted this @ 2:44 PM

acozz
07-26-2005, 07:54 PM
I made this thread last month!

madjo
07-26-2005, 11:49 PM
Hmmm.
Are you referring to this thread. Mine says 6-20-2005 on his @ 8:17 AM. But I have been noticing odd times listed when people post!
Like today's postings showed me 1 or 2 PM when it was still morning.
So It wouldn't surprise me if you/I http://www.planetsmilies.com/smilies/confused/confused0018.gif weren't/aren't seeing things!
FYI; I posted this @ 2:44 PM
are you sure you entered the correct timezone in your profile?

matty28carter
07-27-2005, 10:30 PM
I think he may have read the date NOV 2003 in the top right corner of tokelil's post and believed that was the date it was created. It is in fact the month he signed up to the forum. :bandit:

ulmas
07-28-2005, 11:14 AM
I think he may have read the date NOV 2003 in the top right corner of tokelil's post and believed that was the date it was created. It is in fact the month he signed up to the forum. :bandit:

Damn it! Looking to the date on the right (explicitely stating "Join Date" :P), I thought it was a date when the post was made!!! It was after the midnight when I made this post.

Anyways, cool plug, And now I can add, built fast!