JSI Tip 0926. How do I change the Generic Folder Icon on an Office 97 toolbar that I create?

Jerold Schulman

December 17, 1998

1 Min Read
ITPro Today logo in a gray background | ITPro Today

The Generic Folder Icon appears to the right of the toolbar name. The built-in toolbars use specific icons as follows:

Toolbar

Icon Description

Icon File/Number

 Office 

 Four-color puzzle piece superimposed over a folder 

 msoffice.exe,12 

 Desktop 

 Desk lamp and a desk 

 shell32.dll,35 

 Quickshelf  

 Blue book superimposed over a folder 

 msoffice.exe,13 

 Favorites  

  Folder that contains a blue asterisk 

 msoffice,14 

The button icon for a toolbar is a per user setting at:

HKEY_CURRENT_USERSoftwareMicrosoftOffice8.0Shortcut BarToolbarsFace

where Face is a type REG_SZ entry. Set it to the file name, followed by a comma and the icon index number, starting at 1.

The file must in the office sub-folder (C:Program FilesMicrosoft OfficeOffice) or the %SystemRoot%System32 sub-folder.

Exit and restart the toolbar for the change to take effect.

Here are some common icons:

Icon File/Number

Icon Description

 Shell32.dll,4 

 Generic folder (closed) 

 Shell32.dll,5 

 Generic folder (open) 

 Shell32.dll,20 

 Folder with superimposed icon 

 Shell32.dll,21 

 Open folder with paper 

 Shell32.dll,37 

 Folder with superimposed icon 

 Shell32.dll,40 

 Microsoft Windows logo 


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like