Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Spotify 最近添加了一项功能,其中任务栏图标将带有一个红色的 iOS 风格徽章,其中包含收件箱中的歌曲数量。
徽章本身肯定是图标的一部分,但我想知道是否可以使用官方 API 添加数字。
如果没有,他们怎么会这样做?我的收件箱里从来没有多过几首歌曲,所以它可能只是没有显示 1-9 和 10+ 之类的,或者他们是否可以动态创建图像并将其设置为图标?
我不知道您可以在应用程序运行时更改图标。
ITaskBarList3::SetOverlayIcon就是你要找的。
ITaskBarList3::SetOverlayIcon