X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b5ea4664162471bb709cf6addaba92936ccd36a..342dc9287c824d32f191f7d0b56f3128fd62e018:/src/generic/treectlg.cpp diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 3ee328dff5..99d64a87f3 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2866,7 +2866,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event ) { // Ask the tree control what tooltip (if any) should be shown wxTreeEvent hevent(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, GetId()); - hevent.m_item = (long) hoverItem; + hevent.m_item = hoverItem; hevent.SetEventObject(this); if ( GetEventHandler()->ProcessEvent(hevent) && hevent.IsAllowed() )