ShellBrowser Delphi Components Documentation
ContentsIndexHome
Example

This example creates a new TListItem for your drive C: with the correct caption, icon and overlay icon.

ShellBrowser.ObjectName := 'C:';
ListItem := TListItem.Create;
ListItem.Caption := ShellBrowser.ObjectName;
ListItem.ImageIndex := ShellBrowser.IconNumber;
ListItem.OverlayIndex := ShellBrowser.GetOverlayIndex;