Is there a Windows API for adding badges to taskba

2020-02-24 04:35发布

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.

1条回答
干净又极端
2楼-- · 2020-02-24 04:51

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

查看更多
登录 后发表回答