X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a14587d5907324d280ea6eb2a85e20c0c9654b2..bcb251a0c146e7c39c7000c7dc145b3f2bd6afcf:/include/wx/treebase.h diff --git a/include/wx/treebase.h b/include/wx/treebase.h index d6accc47d4..fab586e27a 100644 --- a/include/wx/treebase.h +++ b/include/wx/treebase.h @@ -61,7 +61,7 @@ public: #if WXWIN_COMPATIBILITY_2_4 // deprecated: only for compatibility, don't work on 64 bit archs - wxTreeItemId(long item) { wxULongToPtr(m_pItem, item); } + wxTreeItemId(long item) { m_pItem = wxUIntToPtr(item); } operator long() const { return (long)wxPtrToUInt(m_pItem); } #else // !WXWIN_COMPATIBILITY_2_4 operator bool() const { return IsOk(); } @@ -244,6 +244,9 @@ class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent { public: wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0); + wxTreeEvent(const wxTreeEvent & event); + + virtual wxEvent *Clone() const { return new wxTreeEvent(*this); } // accessors // get the item on which the operation was performed or the newly @@ -294,7 +297,7 @@ private: friend class WXDLLEXPORT wxTreeCtrl; friend class WXDLLEXPORT wxGenericTreeCtrl; - DECLARE_DYNAMIC_CLASS_NO_COPY(wxTreeEvent) + DECLARE_DYNAMIC_CLASS(wxTreeEvent) }; typedef void (wxEvtHandler::*wxTreeEventFunction)(wxTreeEvent&);