Give wxDynamicSashReparentEvent a copy ctor and a proper Clone so it

can be used with AddPendingEvent.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2001-11-24 03:50:31 +00:00
parent abfe4a8415
commit aa83902af1

View File

@ -83,8 +83,9 @@ class wxDynamicSashReparentEvent : public wxEvent {
public:
wxDynamicSashReparentEvent();
wxDynamicSashReparentEvent(wxObject *object);
wxDynamicSashReparentEvent(const wxDynamicSashReparentEvent& evt);
virtual wxEvent* Clone() const { return NULL; }
virtual wxEvent* Clone() const { return new wxDynamicSashReparentEvent(*this); }
DECLARE_DYNAMIC_CLASS(wxDynamicSashReparentEvent);
};
@ -1239,6 +1240,11 @@ wxDynamicSashReparentEvent::wxDynamicSashReparentEvent(wxObject *object) {
m_eventType = wxEVT_DYNAMIC_SASH_REPARENT;
}
wxDynamicSashReparentEvent::wxDynamicSashReparentEvent(const wxDynamicSashReparentEvent& evt)
: wxEvent(evt)
{
}
IMPLEMENT_DYNAMIC_CLASS(wxDynamicSashReparentEvent, wxEvent)
/////////////////////////////////////////////////////////////////////////////