::wxGetTopLevelParent() returns NULL

Thomas Zehbe tz at ingenion.de
Fri Aug 25 05:42:27 PDT 2006


Am Freitag, 25. August 2006 13:44 schrieb Vadim Zeitlin:
>  No, it's the converse. The top level window is destroyed first and
> *during* its destruction the child windows are destroyed.
on the half way to heaven ...
>
>  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.
So I'll try to save the childs context as long as the TLW is alive.
Regards,
Thomas

>
>  Regards,
> VZ

-- 
Dipl.-Ing. Thomas Zehbe
INGENION GmbH
Kuhweide 6
31552 Apelern
Fon: 05043 / 40 57 90 4
Fax: 05043 / 40 57 90 7




More information about the wx-users mailing list