在 Windows 7 的任务栏上固定广告的快捷方式 [英] Pinning advertised shortcuts on the taskbar in windows 7

查看:20
本文介绍了在 Windows 7 的任务栏上固定广告的快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用 Windows 开始菜单中公布的快捷方式启动.这意味着快捷方式不会直接链接到我的 exe,尽管 exe 最终会运行.

My application launches using an advertised shortcut in the Windows Start Menu. This means the shortcut doesn't link directly to my exe, though the exe is ultimately what runs.

我的问题是:当我右键单击 Windows 7 任务栏中的快捷方式并选择固定到任务栏,然后启动我的应用程序时,我最终在任务栏中出现了两个图标.(所以正在运行的应用程序不会重复使用现有的任务栏图标.)有人知道如何解决这个问题吗?

My problem is: when I right click the shortcut in the Windows 7 taskbar and select Pin to Taskbar, and then launch my application, I end up with two icons in the taskbar. (So the running app does not re-use the existing taskbar icon.) Does anyone know how to fix this?

不幸的是,使用广告而不是直接快捷方式的选择不取决于我.

Unfortunately, the choice of using an advertised rather than a direct shortcut is not up to me.

顺便说一句,在 Windows 7 中,还有另一种将程序固定到任务栏的方法:右键单击正在运行的应用程序的图标.如果我这样做,我不会得到重复的图标,所以我相当肯定问题出在广告的快捷方式上.

By the way, there is another way to pin a program to the taskbar in Windows 7: right click the icon of the running application. If I do it this way, I don't end up with the duplicate icons, so I'm fairly certain the problem is the advertised shortcut.

谢谢,艾米

推荐答案

在这种情况下,您需要使用显式 AppUserModelID.创建快捷方式时,您可以指定 AppUserModelID.同时您还需要在以下位置指定相同的 AppUserModelID:所有正在运行的窗口或进程、文件关联、跳转列表.

In this case you need to use explicit AppUserModelID. When you create the shortcut you can specify AppUserModelID. At the same time you also need to specify the same AppUserModelID at the following places: all running windows or process, file association, jumplist.

有关 AppUserModelID 的更多信息,您可以参考 http://msdn.microsoft.com/en-us/library/dd378459(VS.85).aspx.

For more information about AppUserModelID you can reference http://msdn.microsoft.com/en-us/library/dd378459(VS.85).aspx.

这篇关于在 Windows 7 的任务栏上固定广告的快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆