wxPersistentWindowBase(wxWindow *win)
: wxPersistentObject(win)
{
+#if wxEVENTS_COMPATIBILITY_2_8
win->Connect
(
wxEVT_DESTROY,
NULL,
this
);
+#else // !wxEVENTS_COMPATIBILITY_2_8
+ win->Bind(wxEVT_DESTROY, &wxPersistentWindowBase::HandleDestroy, this);
+#endif // wxEVENTS_COMPATIBILITY_2_8/!wxEVENTS_COMPATIBILITY_2_8
}
virtual wxString GetName() const