Original Post
im creating my own GUI. and each widget can have children widgets. when i create a widget i use new, and i use delete to get rid of it. if each widget has code in its destructor to delete all its children, this would call all the children''s destructors, which would then delete all their children, and so forth. so heres my question, if each widget has a parent, and there is a "DESKTOP" widget in which all widgets are under - to delete all widgets you would simply have to delete the DESKTOP widget, and each and every widget would get deleted - correct?
- jeremiah
inlovewithGod.com