private DragDropEffects dropTargetWrapper_DragFileEnter(IntPtr hDrop, BandObjectLib.POINT pnt, int grfKeyState)
        {
            this.fRespondModKeysTemp = base.fRespondModKeys;
            this.fEnableShiftKeyTemp = base.fEnableShiftKey;
            base.fRespondModKeys     = false;
            base.fEnableShiftKey     = false;
            if (this.MenuDragEnter != null)
            {
                this.MenuDragEnter(this, EventArgs.Empty);
            }
            this.fDrivesContained = false;
            switch (QTTabBarClass.HandleDragEnter(hDrop, out this.strDraggingDrive, out this.strDraggingStartPath))
            {
            case -1:
                return(DragDropEffects.None);

            case 0:
                return(DropTargetWrapper.MakeEffect(grfKeyState, 0));

            case 1:
                return(DropTargetWrapper.MakeEffect(grfKeyState, 1));

            case 2:
                this.fDrivesContained = true;
                return(DragDropEffects.None);
            }
            return(DragDropEffects.None);
        }
Exemplo n.º 2
0
        private DragDropEffects dropTargetWrapper_DragFileEnter(IntPtr hDrop, Point pnt, int grfKeyState)
        {
            fRespondModKeysTemp = fRespondModKeys;
            fEnableShiftKeyTemp = fEnableShiftKey;
            fRespondModKeys     = false;
            fEnableShiftKey     = false;
            if (MenuDragEnter != null)
            {
                MenuDragEnter(this, EventArgs.Empty);
            }
            fDrivesContained = false;
            switch (QTTabBarClass.HandleDragEnter(hDrop, out strDraggingDrive, out strDraggingStartPath))
            {
            case -1:
                return(DragDropEffects.None);

            case 0:
                return(DropTargetWrapper.MakeEffect(grfKeyState, 0));

            case 1:
                return(DropTargetWrapper.MakeEffect(grfKeyState, 1));

            case 2:
                fDrivesContained = true;
                return(DragDropEffects.None);
            }
            return(DragDropEffects.None);
        }