Returns a number of levels in the windows' hierarchy
tree between the $ancestor
and $child.
NOTE: For direct children functions returns 2, which I don't think
is correct. This problem exists for all levels. The result is always increased
by one.
$depth = GetChildDepth( $ancestor, $child );
-
$ancestor
A window handle to ancestor
-
$child
A window handle to child
Number of levels in the windows' hierarchy
tree between the $ancestor
and $child.
NOTE: For direct children functions returns 2,
which I don't think is correct. This problem exists
for all levels. The result is always increased
by one.