VsTeXProject.VisualStudio.Project.ProjectNode.DragEnter C# (CSharp) Method

DragEnter() public method

Called as soon as the mouse drags an item over a new hierarchy or hierarchy window
public DragEnter ( Microsoft.VisualStudio.OLE.Interop.IDataObject pDataObject, uint grfKeyState, uint itemid, uint &pdwEffect ) : int
pDataObject Microsoft.VisualStudio.OLE.Interop.IDataObject reference to interface IDataObject of the item being dragged
grfKeyState uint /// Current state of the keyboard and the mouse modifier keys. See docs for a list of possible /// values ///
itemid uint Item identifier for the item currently being dragged
pdwEffect uint On entry, a pointer to the current DropEffect. On return, must contain the new valid DropEffect
return int
        public override int DragEnter(IOleDataObject pDataObject, uint grfKeyState, uint itemid, ref uint pdwEffect)
        {
            pdwEffect = (uint) DropEffect.None;

            if (SourceDraggedOrCutOrCopied)
            {
                return VSConstants.S_OK;
            }

            dropDataType = QueryDropDataType(pDataObject);
            if (dropDataType != DropDataType.None)
            {
                pdwEffect = (uint) QueryDropEffect(dropDataType, grfKeyState);
            }

            return VSConstants.S_OK;
        }
ProjectNode