是否有用于向任务栏图标添加徽章的 Windows API?
Spotify 最近添加了一项功能,任务栏图标将带有一个红色 iOS 风格的徽章,上面标有收件箱中的歌曲数量。
徽章本身肯定是图标的一部分,但我想知道是否可以通过官方 API 添加该数字。
如果没有,他们会怎么做?我的收件箱中从来没有超过几首歌曲,所以也许它只是不显示 1-9,然后是 10+ 或其他内容,或者他们可以动态创建图像并将其设置为图标吗?
我不知道您可以在应用程序运行时更改图标。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ITaskBarList3::SetOverlayIcon
就是您要寻找的。ITaskBarList3::SetOverlayIcon
is what you're looking for.