Remove bad casts

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-12-13 20:32:41 +00:00
parent 7acd73744b
commit bc0aebab3e
2 changed files with 2 additions and 2 deletions

View File

@@ -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() )

View File

@@ -2480,7 +2480,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
NMTVGETINFOTIP *info = (NMTVGETINFOTIP*)lParam;
// Which item are we trying to get a tooltip for?
event.m_item = (WXHTREEITEM) info->hItem;
event.m_item = info->hItem;
break;
}