| Quote: | ryaske |  | |
| Hey!! Thanks for this solution .. but I think its a little miss-labeled.
This changes the ACTIVE folder icon, not the OPEN icon!
I.e. In windows XP, every branch of the registry in Regedit that is EXPANDED has an "open folder icon" .. not just the ONE branch you are currently focused on (currently selected and highlighted). | |
| | |
Unfortunately we can't define separate icons for (a) the currently Active folder (the one in the tree whose files are being shown in the file pane) and (b) any folder containing subfolders which is currently expanded. Windows uses the same icon called SI_FOLDER_OPEN for both those situations.
You can use other values in the Shell Icons key, to define other icons, for example 3 is the icon for a closed folder and 29 is the Shortcut overlay arrow (set it to a blank transparent icon to have no arrow on shortcuts): "c:\folder\myblank.ico",0
Here's a list I have collected from a few web pages. I think they work in both XP and Vista, but I haven't tested them all.
0 to 13 are drive and application icons:
0 - Unknown application
2 - Default application
3 - Closed folder
4 - Open folder
5 - 5 1/4" Floppy
6 - 3 1/2" Floppy
7 - Removable disk
8 - Hard drive
9 - Network drive online
10 - Network drive offline
11 - CD drive
12 - Ramdrive
13 - Entire network
14 ?
15 - My Computer
16 - Printer manager
17 - Network neighborhood
18 - Network workgroup
19 to 27 Are the start menu icons:
19 - Programs icon
20 - Documents icon
21 - Settings icon
22 - Find icon
23 - Help icon
24 - Run icon
27 - Shutdown icon
Other icons
28 - Sharing overlay (hand)
29 - Shortcut overlay (small arrow)
30 - Default printer overlay (small tick)
31 - Recycle bin empty
32 - Recycle bin full
33 - Dial Up Networking folder
34 - Desktop
35 - Control Panel
37 - Printer folder
40 - Audio CD
41 ?
42 ?
43 - Favorites icon
44 - Logoff icon
45 ?
46 ?
47 - Lock
48 - Hibernate
To set one of them to an icon inside a .dll or .exe file, use the index number counting from 0, for example for the 4th icon in this.dll you would type:
"c:\windows\system32\this.dll",3
To set one of them to an .ico file, the string should end in ",0" because it's the first and only icon in that file. For example:
"c:\folder\subfolder\myicon.ico",0
Note, you need "quotes" around the path if it contains a space, but not around the comma and index number.