Returns a string containing the path (i.e., "parent|child") of the currently selected tree view item.
$path = GetTreeViewSelPath( $hwnd );
Handle to the tree view control window
String containing a path to the currently selected item
Example 9.4. Getting a path
$oldpath = GetTreeViewSelPath($window); SelTreeViewItemPath($window, "Parent|Child"); SelTreeViewItemPath($window, $oldpath);