Reputation: 64391
I am reading from MSDN this:
A child window has only one parent window, but a parent can have any number of child windows. Each child window, in turn, can have child windows. In this chain of windows, each child window is called a descendant window of the original parent window. An application uses the IsChild function to discover whether a given window is a child window or a descendant window of a given parent window.
I am still confused about the difference between a Child window and a Descendent window.
I am using Mita.Foundation.dll to manipulate the IE and Desktop UI. It has the following 2 properties, I don't know what's the difference and I got no document for this DLL.
UIObject.Children
UIObject.Descendents
This concept is critical to me.
Thanks.
Upvotes: 0
Views: 2963
Reputation: 355237
Window A
Window B
Window C
B
is both a child and a descendant of A
.
C
is not a child of A
but it is a descendant of A
.
Or, for an analogy, consider someone who is a grandparent. His grandchildren are descendants of him but they are not his children.
Upvotes: 6