Add GetToolTip accessor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-03-02 18:32:52 +00:00
parent 4f73709d9c
commit 3dd67a18b7
2 changed files with 3 additions and 1 deletions

View File

@ -283,7 +283,8 @@ 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
wxDEPRECATED( int GetCode() const);

View File

@ -256,6 +256,7 @@ public:
// Set the tooltip for the item (for EVT_TREE_ITEM_GETTOOLTIP events)
void SetToolTip(const wxString& toolTip);
wxString GetToolTip();
};
//---------------------------------------------------------------------------