// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "dnd.h"
-#endif
-
#include "wx/wxprec.h"
#if wxUSE_DRAG_AND_DROP
-// if (attributes & kDragHasLeftSenderWindow)
{
-// wxPoint point(localMouse.h , localMouse.v) ;
wxWindow *win = NULL ;
ControlPartCode controlPart ;
ControlRef control = wxMacFindControlUnderMouse( toplevel , localMouse ,
theWindow , &controlPart ) ;
if ( control )
win = wxFindControlFromMacControl( control ) ;
- // TODO toplevel->MacGetWindowFromPointSub( point , &win ) ;
+ else
+ win = toplevel ;
+
int localx , localy ;
localx = localMouse.h ;
localy = localMouse.v ;
- //TODO : should we use client coordinates
+
if ( win )
win->MacRootWindowToWindow( &localx , &localy ) ;
if ( win != trackingGlobals->m_currentTargetWindow )
}
}
- }
- // MyTrackItemUnderMouse(localMouse, theWindow);
+ }
break;
case kDragTrackingLeaveWindow:
if (trackingGlobals->m_currentTarget)