replace templae Connect() overloads with separate Bind() method to improve compatibility (see #10000, closes #10477)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-02-25 17:43:22 +00:00
parent ec38d07d03
commit 5293e4b710
3 changed files with 118 additions and 322 deletions

View File

@@ -34,6 +34,7 @@ public:
wxPersistentWindowBase(wxWindow *win)
: wxPersistentObject(win)
{
#if wxEVENTS_COMPATIBILITY_2_8
win->Connect
(
wxEVT_DESTROY,
@@ -42,6 +43,9 @@ public:
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