Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Windows API for adding badges to taskbar icons?

Spotify recently added a feature where the taskbar icon would have a red iOS-style badge with the number of songs in your inbox.

The badge itself is definitely part of the icon, but I was wondering if the number might be added with an official API.

If not, how might they be doing it? I've never had more than a few songs in my inbox, so maybe it just doesn't shows 1-9 and then 10+ or something, or could they be dynamically creating the image and setting it as the icon?

I wasn't aware you could change the icon while the app is running.

like image 778
lavelle Avatar asked Oct 21 '11 17:10

lavelle


People also ask

How do I customize Windows taskbar icons?

Right-click on this name to show another list of options and choose Properties there. This will open a window to the program's properties panel, on the Shortcut tab. There, click the Change Icon button at the bottom. In the new window, you'll be able to select a new icon for the program on your taskbar.

How do I make my taskbar icons show names?

Windows 10 gives you the option to show the names of running applications in your taskbar, and it's easy to do at any skill level. Click on Start > Settings Personalization > Taskbar. Scroll down to Combine taskbar buttons.


1 Answers

ITaskBarList3::SetOverlayIcon is what you're looking for.

like image 86
Raymond Chen Avatar answered Oct 08 '22 23:10

Raymond Chen