diff --git a/include/shobjidl.idl b/include/shobjidl.idl index fa6d86d2ced..6624df4da18 100644 --- a/include/shobjidl.idl +++ b/include/shobjidl.idl @@ -2244,3 +2244,50 @@ interface INameSpaceTreeControlCustomDraw : IUnknown [in] RECT *prc, [in] NSTCCUSTOMDRAW *pnstccdItem); } + +/***************************************************************************** + * INameSpaceTreeControlDropHandler interface + */ +[ + object, + uuid(F9C665D6-C2F2-4C19-BF33-8322D7352F51), + local +] +interface INameSpaceTreeControlDropHandler : IUnknown +{ + HRESULT OnDragEnter( + [in, unique] IShellItem *psiOver, + [in] IShellItemArray *psiaData, + [in] BOOL fOutsideSource, + [in] DWORD grfKeyState, + [in, out] DWORD *pdwEffect); + + HRESULT OnDragOver( + [in, unique] IShellItem *psiOver, + [in] IShellItemArray *psiaData, + [in] DWORD grfKeyState, + [in, out] DWORD *pdwEffect); + + HRESULT OnDragPosition( + [in, unique] IShellItem *psiOver, + [in] IShellItemArray *psiaData, + [in] int iNewPosition, + [in] int iOldPosition); + + HRESULT OnDrop( + [in, unique] IShellItem *psiOver, + [in] IShellItemArray *psiaData, + [in] int iPosition, + [in] DWORD grfKeyState, + [in, out] DWORD *pdwEffect); + + HRESULT OnDropPosition( + [in, unique] IShellItem *psiOver, + [in] IShellItemArray *psiaData, + [in] int iNewPosition, + [in] int iOldPosition); + + HRESULT OnDragLeave( + [in, unique] IShellItem *psiOver); +} +cpp_quote("#define NSTCDHPOS_ONTOP -1")