mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
49b2b1dab1
For simplicity and short typing. JIRA issue: CORE-19469 - Replace "virtual HRESULT STDMETHODCALLTYPE m" with "STDMETHOD(m)" (m is a method name). - Replace "virtual t STDMETHODCALLTYPE m" with "STDMETHOD_(t, m)" (t is a type. m is a method name). - Use "override" keyword as possible. - CDefView should inherit IShellView3 due to override CreateViewWindow3 method. - Fix CDefView::CreateViewWindow3 (parameter prcView is const RECT *, not LPRECT).
57 lines
2 KiB
C++
57 lines
2 KiB
C++
/*
|
|
* file system folder
|
|
*
|
|
* Copyright 1997 Marcus Meissner
|
|
* Copyright 1998, 1999, 2002 Juergen Schmied
|
|
* Copyright 2009 Andrew Hill
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#ifndef _DRAGDROPHELPER_H_
|
|
#define _DRAGDROPHELPER_H_
|
|
|
|
class CDropTargetHelper :
|
|
public CComCoClass<CDropTargetHelper, &CLSID_DragDropHelper>,
|
|
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
|
public IDragSourceHelper,
|
|
public IDropTargetHelper
|
|
{
|
|
private:
|
|
public:
|
|
CDropTargetHelper();
|
|
~CDropTargetHelper();
|
|
|
|
virtual HRESULT WINAPI InitializeFromBitmap(LPSHDRAGIMAGE pshdi, IDataObject *pDataObject);
|
|
virtual HRESULT WINAPI InitializeFromWindow(HWND hwnd, POINT *ppt, IDataObject *pDataObject);
|
|
|
|
STDMETHOD(DragEnter)(HWND hwndTarget, IDataObject* pDataObject, POINT* ppt, DWORD dwEffect) override;
|
|
STDMETHOD(DragLeave)() override;
|
|
STDMETHOD(DragOver)(POINT *ppt, DWORD dwEffect) override;
|
|
STDMETHOD(Drop)(IDataObject* pDataObject, POINT* ppt, DWORD dwEffect) override;
|
|
STDMETHOD(Show)(BOOL fShow) override;
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_DRAGDROPHELPER)
|
|
DECLARE_NOT_AGGREGATABLE(CDropTargetHelper)
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
BEGIN_COM_MAP(CDropTargetHelper)
|
|
COM_INTERFACE_ENTRY_IID(IID_IDragSourceHelper, IDragSourceHelper)
|
|
COM_INTERFACE_ENTRY_IID(IID_IDropTargetHelper, IDropTargetHelper)
|
|
END_COM_MAP()
|
|
};
|
|
|
|
#endif /* _DRAGDROPHELPER_H_ */
|