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)
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)