加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

在Windows资源管理器上下文菜单中排序

发布时间:2020-12-14 04:34:48 所属栏目:Windows 来源:网络整理
导读:如何更改上下文菜单中条目的顺序?(例如,对于目录)我需要知道 Windows在显示时如何确定顺序,以便我可以控制它.例如,我想将自定义操作放在上下文菜单列表的末尾 预先感谢! 我的Google-fu带我到 this: So the sorting is based on the following elements in
如何更改上下文菜单中条目的顺序?(例如,对于目录)我需要知道 Windows在显示时如何确定顺序,以便我可以控制它.例如,我想将自定义操作放在上下文菜单列表的末尾

预先感谢!

我的Google-fu带我到 this:

So the sorting is based on the following elements in decision order:

  1. Key priority (eg,txtfile,*,AFSO)
  2. Registry Enumeration order of shellexcontextmenuhandlers with a special case for static verbs always being first
  3. IContextMenu Implementation order

So if there is any contention for position,there is no consistent way for an extension to guarantee their relative position within the menu.

显然,您无法对阶段1执行任何操作.阶段3仅适用于处理程序中实现的谓词.离开阶段2.你唯一能做的就是在ContextMenuHandlers下命名你的条目,这样它就会先被枚举,但没有什么能阻止别人做同样的事情.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读