Put back the old wxTreeEvent ctor for compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-06-27 21:21:36 +00:00
parent 2d837688be
commit 49b6ebb7e1
2 changed files with 8 additions and 0 deletions

View File

@ -273,6 +273,7 @@ public:
wxTreeEvent(wxEventType commandType,
wxTreeCtrlBase *tree,
const wxTreeItemId &item = wxTreeItemId());
wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
wxTreeEvent(const wxTreeEvent& event);
virtual wxEvent *Clone() const { return new wxTreeEvent(*this); }

View File

@ -76,6 +76,13 @@ wxTreeEvent::wxTreeEvent(wxEventType commandType,
SetClientObject(tree->GetItemData(item));
}
wxTreeEvent::wxTreeEvent(wxEventType commandType, int id)
: wxNotifyEvent(commandType, id)
{
m_itemOld = 0l;
m_editCancelled = false;
}
wxTreeEvent::wxTreeEvent(const wxTreeEvent & event)
: wxNotifyEvent(event)
{