qt 工具栏添加按钮_将删除按钮添加到Windows 7资源管理器工具栏

qt 工具栏添加按钮

This article describes how to add a Delete button to the Windows 7 Explorer toolbar.  In the

本文介绍如何将删除按钮添加到Windows 7资源管理器工具栏。 在里面

followup article, we'll see how to add your own custom buttons to that Win7 toolbar. 在后续文章中 ,我们将看到如何向Win7工具栏添加您自己的自定义按钮。

With Win7, if you want to delete a file, you can drag it to the Recycle Bin, or right-click it and select Delete from the context menu, or open the Organize menu and choose Delete.  You can also select a file and press the Del key, or even Alt+F,D.

使用Win7,如果要删除文件,可以将其拖动到回收站,或者右键单击它,然后从上下文菜单中选择“删除”,或者打开“组织”菜单并选择“删除”。 您也可以选择一个文件,然后按Del键,甚至按Alt + F,D。

That's a lot of options, but one is conspicuous by its absence:  What you can't do is what you have been doing since about 1985 -- select it in the file pane, and click a Delete button on the Explorer toolbar.  

这有很多选择,但是由于缺少它而引人注目:您做的就是您自1985年以来一直在做的事情-在文件窗格中选择它,然后单击“资源管理器”工具栏上的“删除”按钮。

Delete button added to Win7 Explorer toolbar

First, some background.  You have likely noticed that the Win7 Explorer adjusts its toolbar to match the content that is being displayed.  This is quite useful in some of the more exotic shell namespace folders, such as Control Panel, or Contacts or Recycle Bin.  To keep track of what folder should be shown what way, Windows maintains a largish collection of items in a registry section:

首先,一些背景。 您可能已经注意到Win7 Explorer会调整其工具栏以匹配所显示的内容。 这在一些更为特殊的外壳名称空间文件夹中非常有用,例如“控制面板”,“联系人”或“回收站”。 为了跟踪应该以哪种方式显示哪个文件夹,Windows在注册表部分中维护了一些大型项目:

    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes

HKLM \软件\ Microsoft \ Wi ndows \ Curr entVersion \资源管理器\ 资料夹类型 s

For instance:

例如:

RegEdit under "FolderTypes" in the HKLM hive

Each of these items is identified here only by a GUID, but if you look within, you'll see that there is a descriptive string associated with each and the GUID can also be found in different sections of the registry where more details are available.  Anyway, once you have isolated which of the FolderTypes sub-keys you want to modify, you can add commands to the toolbar that is associated with that folder type.  I could not find this documented anywhere, but some of the folder types provide enough of an example to figure out the basics.  

这些项中的每一项仅在此处由GUID标识,但是如果您查看内部,将会看到与每个项相关联的描述性字符串,并且GUID也可以在注册表的不同部分中找到,那里有更多详细信息。 无论如何,一旦隔离了要修改的FolderTypes子项,就可以向与该文件夹类型关联的工具栏添加命令。 我在任何地方都找不到此文档,但是某些文件夹类型提供了足够的示例以弄清楚基础知识。

In this article, we'll "add-back" the standard button that Microsoft basically just hid from view.  In t

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值