ShellBrowser Delphi Components
Question / Problem
How can I exclude a drive from the JamShellTree?
Answer / Solution
You can use the OnAddFolder event with a statement like this:
CanAdd := not (GetDriveType(PChar(Path)) in [DRIVE_REMOVABLE]);
This will exclude the floppy drive. It is also possible to exclude other drives like the CD-ROM (DRIVE_CDROM).