// headers
// ----------------------------------------------------------------------------
-#include "wx/window.h"
+#include "wx/nonownedwnd.h"
#include "wx/iconbndl.h"
// the default names for various classes
// wxTopLevelWindow: a top level (as opposed to child) window
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxTopLevelWindowBase : public wxWindow
+class WXDLLEXPORT wxTopLevelWindowBase : public wxNonOwnedWindow
{
public:
// construction
virtual bool IsIconized() const = 0;
// get the frame icon
- const wxIcon& GetIcon() const { return m_icons.GetIcon( -1 ); }
+ wxIcon GetIcon() const { return m_icons.GetIcon( -1 ); }
// get the frame icons
const wxIconBundle& GetIcons() const { return m_icons; }
static int WidthDefault(int w) { return w == wxDefaultCoord ? GetDefaultSize().x : w; }
static int HeightDefault(int h) { return h == wxDefaultCoord ? GetDefaultSize().y : h; }
+ // reset m_winDefault and m_winTmpDefault if they point to the window being
+ // destroyed
+ void OnChildDestroy(wxWindowDestroyEvent& event);
+
+
// the frame icon
wxIconBundle m_icons;