View Full Version : add buttons in windows dialog box?
kabatak
June 20th, 2004, 10:07
Hi, please see the screen shot attachment to better understand, thanks.
Can that be done?
CareBear
June 20th, 2004, 12:15
The easy way:
open the group policy editor and navigate to User Configuration\Administrative Templates\Windows Components\Windows Explorer\Common Open File Dialog and double click "Items displayed in Places Bar".
Click on the explain tab for some help there.
The hard way:
open regedit and navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ Policies\Comdlg32\Placesbar
You'll most likely need to create the Comdlg32 and Placesbar key.
Once there you create 5 values named Place0, Place1, Place2, Place3 and Place4 which represent the icons you'll see from top to bottom.
You create them as a string if you want it to point to a directory, or create it as a DWORD if you want it to point to one of the common folders (like 'My Documents' or 'My Computer').
The (hexadecimal) values for the default icons there are:
My Recent Documents: 8
Desktop: 0
My Documents: 5
My Computer: 11 (Hexadecimal, so 17 decimal, make sure to check 'base' when you type those in)
My Network: 12
An example would be:
Place0 (REG_DWORD) : 0x0 (Points to the desktop)
Place1 (REG_DWORD) : 0x5 (Points to 'My Documents')
Place2 (REG_DWORD) : 0x11 (Points to 'My Computer')
Place3 (REG_SZ) : c:\temp (Points to 'c:\temp')
Place4 (REG_SZ) : d:\someotherfolderhere (Points to 'd:\someotherfolderhere')
Note that this changes it for every application that uses the common dialog boxes, not just the one.
kabatak
June 20th, 2004, 12:41
hmm.. pretty cool :) i went with the easy way, thanks! :)
LeX
June 20th, 2004, 20:53
open the group policy editor Where can I find that?
Robert
June 20th, 2004, 21:09
Where can I find that?
Start>Run>"gpedit.msc"
LeX
June 20th, 2004, 21:19
Thanks
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.