With our application, which has a couple different tree view controls, the way to expand all is different. In one we select the parent and do a key press of the asterisk key which expands all trees at all levels. Where the Plus expands only the current. The other control we use we have to go down the tree item by item pressing the plus key to get everything expanded.
Check and see if there is a way to expand everything with a key stroke, and then use that in your script.
This one really works well
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> ExpAll(window wTree, STRING sItemName)