Use SelectedIconNumber to get the number of the 'opened' icon for the current object.
SelectedIconNumber contains the number of the 'opened' icon in the system image list. Only the selected icons of folder objects will differ from the normal icon. Use the component TJamSystemImageList to get access to the image list of Windows. You can use SelectedIconNumber to set the SelectedIndex property of a TTreeNode.
TShellBrowser.GetDesktopIconIndex
TJamSystemImageList.GetFolderIconNumber
TJamSystemImageList.GetIconAsBitmap
TJamSystemImageList.GetIndexFromExtension
TJamSystemImageList.GetIndexFromFileName
TJamSystemImageList.GetIndexFromItemIdList
TJamSystemImageList.GetIndexFromPathByExt
These lines show how to fill a branch of a treeview, so that it looks like the tree in the explorer.