任务栏上的自定义工具栏 [英] Custom Toolbar on Taskbar

查看:120
本文介绍了任务栏上的自定义工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过编程方式制作新的自定义工具栏并将其添加到任务栏?我知道可以通过右键单击任务栏,工具栏,新工具栏...来完成此操作,但是我需要一种以编程方式执行此操作的方法.根据我的发现,制作新的自定义工具栏时,没有注册表更改可以对其进行恢复,因此我无法找到任何位置来标识哪些工具栏处于活动状态,更不用说自定义工具栏指向的位置了.任何想法都将不胜感激.

Is there a way to programatically make a new custom toolbar and add it to the taskbar?  I know it can be done by right-clicking on the taskbar, Toolbars, New Toolbar..., but I need a way to do that programatically.  From what i have found, when a new custom toolbar is made, there are no registry changes reguarding it, and I have not been able to find any place that identifies what toolbars are active, much less what the custom toolbar points to.  Any thoughts would be very appreciated.

推荐答案

好的,我想出了一种方法.首先,获取您要在Vista机器上设置的任何设置.启用快速启动,一个自定义菜单,该菜单指向任何位置,或者您想要放置在任务栏上的任何其他内容.然后,在regedit中,导航到密钥HKCU \ Software \ Microsofy \ Windows \ CurrentVersion \ Explorer \ Streams \ Desktop,然后将其导出到桌面.编辑刚刚在桌面上创建的.reg文件,以使其在方括号中显示为[HKEY_USERS \ asdf \ Software \ Microsoft ...(其余相同)],然后保存并关闭该文件.现在要做的是编辑默认配置文件,以便在创建新用户时,默认情况下,他们将在任务栏上具有您设置的任何设置.返回regedit,然后单击HKEY_USERS键.转到文件">加载配置单元",然后转到c:\ Users \ Default(已隐藏),然后在文件名框中键入"ntuser.dat",然后单击打开".然后,它将询问您要调用的名称,并在我们编辑.reg文件以使用"asdf"时,将其命名为"asdf".现在,配置单元已加载,运行.reg文件并接受所有提示.默认配置文件在Streams键之后没有任何键,因此您无需覆盖任何内容,只需设置默认值即可.现在,单击asdf键,转到File> Unload Hive,以便您可以创建新用户(否则该文件正在使用中并且会抱怨),关闭regedit,您应该一切顺利.如果您有任何问题,觉得有用或有其他想法,请留言.希望这会有所帮助.

Alright, I figured out a way to do it.  First, get whatever settings you want set on a vista machine.  Enable Quick Launch, a custom menu pointing wherever, or whatever else you want to be put onto the taskbar.  Then, in regedit, navigate to the key HKCU\Software\Microsofy\Windows\CurrentVersion\Explorer\Streams\Desktop, and export it to the desktop.  Edit the .reg file you just made on the desktop so that in brackets it reads [HKEY_USERS\asdf\Software\Microsoft....(the rest is the same)], then save and close the file.  What you are now going to do, is edit the default profile so that when new users are created, they will have whatever settings you set on their taskbar by default.  Go back to regedit, and go the the HKEY_USERS key.  Go to file>Load Hive, and go to c:\Users\Default (it is hidden), and type 'ntuser.dat' into the file name box, and hit 'Open'.  It will then ask you what you want to call it, and, as we edited the .reg file to use 'asdf', name it 'asdf'.  Now that the hive is loaded, run the .reg file and accept all the prompts.  The default profile does not have any keys past the Streams key, so you are not overwriting anything, just setting the default.  Now, click on the asdf key, go to File>Unload Hive so that you can create new users (otherwise the file is in use and it complains), close regedit, and you should be good to go.  Leave a post if you have any problems, find it useful, or whatever floats your fancy.  Hope this helps.

-丹


这篇关于任务栏上的自定义工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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