X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/156194e1d525407e90c21552f8f7aa05756e0ddc..2b9a7d4cc2f5f55df3d83f7cf2160cf9a509a4f2:/src/common/treebase.cpp diff --git a/src/common/treebase.cpp b/src/common/treebase.cpp index 4c07404f5a..50a8c96f81 100644 --- a/src/common/treebase.cpp +++ b/src/common/treebase.cpp @@ -63,6 +63,7 @@ DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK) DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_DRAG) DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK) DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_MENU) // ---------------------------------------------------------------------------- // Tree event @@ -75,8 +76,28 @@ wxTreeEvent::wxTreeEvent(wxEventType commandType, int id) : wxNotifyEvent(commandType, id) { m_itemOld = 0l; - m_editCancelled = FALSE; + m_editCancelled = false; } +wxTreeEvent::wxTreeEvent(const wxTreeEvent & event) + : wxNotifyEvent(event) +{ + m_evtKey = event.m_evtKey; + m_item = event.m_item; + m_itemOld = event.m_itemOld; + m_pointDrag = event.m_pointDrag; + m_label = event.m_label; + m_editCancelled = event.m_editCancelled; +} + +#if WXWIN_COMPATIBILITY_2_2 + +int wxTreeEvent::GetCode() const +{ + return m_evtKey.GetKeyCode(); +} + +#endif // WXWIN_COMPATIBILITY_2_2 + #endif // wxUSE_TREECTRL