Shell pop-up menu item hint on status bar
Posted on 1998-05-16
I have written a program (in Delphi) which has an option to put itself on the pop-up menu or "shell shortcut" menu that is displayed when mouse button 2 is clicked on a drive or folder in Windows Explorer and in other Windows shell utilities such as My Computer, drive and folder windows and open/save dialog boxes.
To do this, my program inserts an entry into the registry for each of 'Drive' and 'Directory' as follows:
where ddd = 'Drive' or 'Directory', ppp = path of the program's folder. Folder Sizer (FOLSIZER.EXE) is the name of my program.
In addition to the command to be executed for the menu item, which is shown in the above registry entry, I would also like to insert a hint or description to appear on the status bar of the My Computer window and of drive and folder windows. Without this, the default is simply to show the application name as shown in the registry key. Unfortunately, it actually shows literally as 'Folder &Sizer', including the '&', which looks silly! (The '&' is not shown on the pop-up menu: instead it functions to underline the 'S' and make 'S' the hot key.)
So how can I replace the default hint with a more suitable alternative, such as 'Analyse the drive with Folder Sizer'?
(No comments about my non-American spelling of 'Analyse', please. :-))