SClassViewer::SetExpansionStatesInTree

Recursive function to set the expansion states of items in the tree.