How to destroy child dialog with in child Dialog

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
gobivasel
Knows some wx things
Knows some wx things
Posts: 28
Joined: Tue Jan 08, 2013 11:30 am

How to destroy child dialog with in child Dialog

Post by gobivasel »

Create a one Dialog and add the child dialog, child dialog is create a another child.how to destroy the main dialog and all the child dialog,any idea or code give it
Radek
Super wx Problem Solver
Super wx Problem Solver
Posts: 286
Joined: Sun Sep 11, 2011 7:17 am

Re: How to destroy child dialog with in child Dialog

Post by Radek »

Make sure that the children are really children - that they specify their "parents". When the parent get destroyed, all children get destroyed automatically, too. When you destroy the "main dialog", the whole chain of subordinated dialogs get destroyed as well. No need of individual destroying.
Post Reply