1 // TortoiseSVN - a Windows shell extension for easy version control
\r
3 // Copyright (C) 2003-2008 - Stefan Kueng
\r
5 // This program is free software; you can redistribute it and/or
\r
6 // modify it under the terms of the GNU General Public License
\r
7 // as published by the Free Software Foundation; either version 2
\r
8 // of the License, or (at your option) any later version.
\r
10 // This program is distributed in the hope that it will be useful,
\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 // GNU General Public License for more details.
\r
15 // You should have received a copy of the GNU General Public License
\r
16 // along with this program; if not, write to the Free Software Foundation,
\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\r
20 #include "DragDropImpl.h"
\r
25 class CRepositoryBrowser;
\r
28 * \ingroup TortoiseProc
\r
29 * Implements a drop target on the left tree control in the repository browser
\r
31 class CTreeDropTarget : public CIDropTarget
\r
34 CTreeDropTarget(CRepositoryBrowser * pRepoBrowser);
\r
36 virtual bool OnDrop(FORMATETC* pFmtEtc, STGMEDIUM& medium, DWORD *pdwEffect, POINTL pt);
\r
37 virtual HRESULT STDMETHODCALLTYPE DragEnter(IDataObject __RPC_FAR *pDataObj, DWORD grfKeyState, POINTL pt, DWORD __RPC_FAR *pdwEffect);
\r
38 virtual HRESULT STDMETHODCALLTYPE DragOver(DWORD grfKeyState, POINTL pt, DWORD __RPC_FAR *pdwEffect);
\r
39 virtual HRESULT STDMETHODCALLTYPE DragLeave(void);
\r
42 CRepositoryBrowser * m_pRepoBrowser;
\r
44 DWORD m_dwHoverStartTicks;
\r
45 HTREEITEM hLastItem;
\r
49 * \ingroup TortoiseProc
\r
50 * Implements a drop target on the right list control in the repository browser
\r
52 class CListDropTarget : public CIDropTarget
\r
55 CListDropTarget(CRepositoryBrowser * pRepoBrowser);
\r
57 virtual bool OnDrop(FORMATETC* pFmtEtc, STGMEDIUM& medium, DWORD *pdwEffect, POINTL pt);
\r
58 virtual HRESULT STDMETHODCALLTYPE DragEnter(IDataObject __RPC_FAR *pDataObj, DWORD grfKeyState, POINTL pt, DWORD __RPC_FAR *pdwEffect);
\r
59 virtual HRESULT STDMETHODCALLTYPE DragOver(DWORD grfKeyState, POINTL pt, DWORD __RPC_FAR *pdwEffect);
\r
60 virtual HRESULT STDMETHODCALLTYPE DragLeave(void);
\r
63 CRepositoryBrowser * m_pRepoBrowser;
\r