public DragDropEffects StartDrag (IntPtr handle, object data, DragDropEffects allowed_effects) { IntPtr dragref = IntPtr.Zero; EventRecord eventrecord = new EventRecord (); effects = DragDropEffects.None; NewDrag (ref dragref); XplatUICarbon.GetGlobalMouse (ref eventrecord.mouse); StoreObjectInDrag (handle, dragref, data); TrackDrag (dragref, ref eventrecord, IntPtr.Zero); DisposeDrag (dragref); return effects; }
extern static int TrackDrag (IntPtr dragref, ref EventRecord eventrecord, IntPtr region);
extern static int TrackDrag(IntPtr dragref, ref EventRecord eventrecord, IntPtr region);