X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..ec8565f3c5d1df72267cb1e3375789090ac091da:/include/wx/treebase.h diff --git a/include/wx/treebase.h b/include/wx/treebase.h index 9148bd6d27..c7c9aef476 100644 --- a/include/wx/treebase.h +++ b/include/wx/treebase.h @@ -20,6 +20,8 @@ // headers // ---------------------------------------------------------------------------- +#include "wx/defs.h" + #if wxUSE_TREECTRL #include "wx/window.h" // for wxClientData @@ -283,6 +285,7 @@ public: // Set the tooltip for the item (for EVT\_TREE\_ITEM\_GETTOOLTIP events) void SetToolTip(const wxString& toolTip) { m_label = toolTip; } + wxString GetToolTip() { return m_label; } #if WXWIN_COMPATIBILITY_2_2 // for compatibility only, don't use @@ -335,7 +338,7 @@ BEGIN_DECLARE_EVENT_TYPES() END_DECLARE_EVENT_TYPES() #define wxTreeEventHandler(func) \ - (wxObjectEventFunction)wxStaticCastEvent(wxTreeEventFunction, &func) + (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxTreeEventFunction, &func) #define wx__DECLARE_TREEEVT(evt, id, fn) \ wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_ ## evt, id, wxTreeEventHandler(fn))