Original Post
Hey, I have a group of windows, where there''s a parent window, his children, and some of the childrens are parents to other windows too, etc. Anyway, I want to make the Render function, but I''m not sure of how to do that (Using Recursion, isn''t it?)...
This is the code to render only the toppest window and its children, what should I add to render its children''s children too?
for (int q = 0; q <= Top.sub.GetSize()-1; q++)
{
Window ww = Top.sub.GetAt(q);
if (ww)
{
RenderWindow(ww);
}
}
Thanks...
Ben