如何设置任务栏分组图标
当我的应用程序打开太多窗口时,任务栏会将它们分组为一个按钮。 每个窗口都有自己的图标,但分组图标是默认的“未知”类图标。
如何设置分组图标?
When my application opens too many windows the taskbar groups them into one button. Each window has its own icon, but the grouping icon is the default "unknown"-kind icon.
How can I set the grouping icon?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Raymond Chen 的这条评论表明图标来自 exe 本身,我建议使用类似 eXeScope 确保您的应用程序图标正确嵌入,并可能将其与显示正确行为的其他 exe 进行比较以进行增量调试。
This comment from Raymond Chen indicates that the icon is coming from the exe itself, I would suggest using something like eXeScope to make sure that your application icon is being embedded properly, and maybe compare it with other exes that display proper behavior to do delta debugging.
任务栏组图标可以在注册表中基于每个应用程序进行设置。
对于探索者来说,这将在这里:
The taskbar group icon can be set in the registry on a per application basis.
For explorer, this would be here:
应用程序任务栏组图标可以通过两种方式设置
通过项目属性:
在解决方案资源管理器中单击项目 → 右键单击 → 选择属性 → 选择应用程序选项卡 → 转到资源并更改默认图标,然后选择新图标并保存并构建。
通过注册表(动态):
您必须在“带有路径的图标文件”下创建TaskbarGroupIcon键和值
“HKEY_CURRENT_USER\SOFTWARE\Classes\Applications\<>”
如果以上键不存在,您必须创建
Application taskbar group icon can be set in two ways
Through Project Properties:
Click Project in solution explorer → right click → select properties → select Application tab → go to resoruces and change the default icon and select the newicon and save and build.
Through Registry(Dynamic):
You have to create TaskbarGroupIcon key and value is "icon file with path" under
"HKEY_CURRENT_USER\SOFTWARE\Classes\Applications\<>"
If above keys are not present you have to create