::wxGetTopLevelParent() returns NULL
Vadim Zeitlin
vadim at wxwindows.org
Fri Aug 25 04:44:32 PDT 2006
On Fri, 25 Aug 2006 13:26:50 +0200 Thomas Zehbe <tz at ingenion.de> wrote:
TZ> I believe that I read that windows are destroeyed from child to parent order
TZ> what would make sense.
No, it's the converse. The top level window is destroyed first and
*during* its destruction the child windows are destroyed.
TZ> And if the pointer is valid the vtable for the object should be valid,
TZ> too, I think.
As Alex explained, this is wrong. By the time the child windows are
deleted, the parent window is no longer a wxTLW but just a wxWindow as
children are destroyed by wxWindow dtor.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list