ReactOS 0.4.15-dev-8222-g9164419
CDropTargetHelper.h
Go to the documentation of this file.
1/*
2 * file system folder
3 *
4 * Copyright 1997 Marcus Meissner
5 * Copyright 1998, 1999, 2002 Juergen Schmied
6 * Copyright 2009 Andrew Hill
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 */
22
23#ifndef _DRAGDROPHELPER_H_
24#define _DRAGDROPHELPER_H_
25
27 public CComCoClass<CDropTargetHelper, &CLSID_DragDropHelper>,
28 public CComObjectRootEx<CComMultiThreadModelNoCS>,
29 public IDragSourceHelper,
31{
32private:
33public:
36
37 virtual HRESULT WINAPI InitializeFromBitmap(LPSHDRAGIMAGE pshdi, IDataObject *pDataObject);
38 virtual HRESULT WINAPI InitializeFromWindow(HWND hwnd, POINT *ppt, IDataObject *pDataObject);
39
40 STDMETHOD(DragEnter)(HWND hwndTarget, IDataObject* pDataObject, POINT* ppt, DWORD dwEffect) override;
41 STDMETHOD(DragLeave)() override;
42 STDMETHOD(DragOver)(POINT *ppt, DWORD dwEffect) override;
43 STDMETHOD(Drop)(IDataObject* pDataObject, POINT* ppt, DWORD dwEffect) override;
44 STDMETHOD(Show)(BOOL fShow) override;
45
48
50
52 COM_INTERFACE_ENTRY_IID(IID_IDragSourceHelper, IDragSourceHelper)
53 COM_INTERFACE_ENTRY_IID(IID_IDropTargetHelper, IDropTargetHelper)
55};
56
57#endif /* _DRAGDROPHELPER_H_ */
#define STDMETHOD(m)
Definition: basetyps.h:62
STDMETHOD() Show(BOOL fShow) override
STDMETHOD() Drop(IDataObject *pDataObject, POINT *ppt, DWORD dwEffect) override
STDMETHOD() DragLeave() override
STDMETHOD() DragEnter(HWND hwndTarget, IDataObject *pDataObject, POINT *ppt, DWORD dwEffect) override
virtual HRESULT WINAPI InitializeFromWindow(HWND hwnd, POINT *ppt, IDataObject *pDataObject)
virtual HRESULT WINAPI InitializeFromBitmap(LPSHDRAGIMAGE pshdi, IDataObject *pDataObject)
STDMETHOD() DragOver(POINT *ppt, DWORD dwEffect) override
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:581
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:601
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:679
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:651
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:645
#define END_COM_MAP()
Definition: atlcom.h:592
#define IDR_DRAGDROPHELPER
Definition: shresdef.h:888
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define WINAPI
Definition: msvc.h:6