fix wxSashEvent, wxFindDialogEvent, wxSplitterEvent to implement Clone() correctly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-12-27 14:48:26 +00:00
parent 88fff2a712
commit f8a5d9dac6
3 changed files with 19 additions and 3 deletions

View File

@@ -322,6 +322,8 @@ public:
SetEventObject(splitter);
if (splitter) m_id = splitter->GetId();
}
wxSplitterEvent(const wxSplitterEvent& event)
: wxNotifyEvent(event), m_data(event.m_data) { }
// SASH_POS_CHANGED methods
@@ -366,6 +368,8 @@ public:
return m_data.pt.y;
}
virtual wxEvent *Clone() const { return new wxSplitterEvent(*this); }
private:
friend class WXDLLIMPEXP_FWD_CORE wxSplitterWindow;
@@ -380,7 +384,7 @@ private:
} pt; // position of double click for DCLICK event
} m_data;
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSplitterEvent)
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSplitterEvent)
};
typedef void (wxEvtHandler::*wxSplitterEventFunction)(wxSplitterEvent&);