-#if wxEVENTS_COMPATIBILITY_2_8
- win->Connect
- (
- wxEVT_DESTROY,
- wxWindowDestroyEventHandler(
- wxPersistentWindowBase::HandleDestroy),
- NULL,
- this
- );
-#else // !wxEVENTS_COMPATIBILITY_2_8
- win->Bind(wxEVT_DESTROY, &wxPersistentWindowBase::HandleDestroy, this);
-#endif // wxEVENTS_COMPATIBILITY_2_8/!wxEVENTS_COMPATIBILITY_2_8
+ wxBIND_OR_CONNECT_HACK(win, wxEVT_DESTROY, wxWindowDestroyEventHandler,
+ wxPersistentWindowBase::HandleDestroy, this);