2002-08-13 05:21:53 +02:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces related to SHELL DragDropHelper
|
|
|
|
*
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_DRAGDROPHELPER_H
|
|
|
|
#define __WINE_WINE_OBJ_DRAGDROPHELPER_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interfaces
|
|
|
|
*/
|
|
|
|
DEFINE_GUID(CLSID_DragDropHelper, 0x4657278a, 0x411b, 0x11d2, 0x83, 0x9a, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0);
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IDropTargetHelper, 0x4657278b, 0x411b, 0x11d2, 0x83, 0x9a, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0);
|
|
|
|
typedef struct IDropTargetHelper IDropTargetHelper,*LPDROPTARGETHELPER;
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IDragSourceHelper, 0xde5bf786, 0x477a, 0x11d2, 0x83, 0x9d, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xd0);
|
|
|
|
typedef struct IDragSourceHelper IDragSourceHelper,*LPDRAGSOURCEHELPER;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDragSourceHelper interface
|
|
|
|
*/
|
2002-08-29 01:43:43 +02:00
|
|
|
|
2002-08-13 05:21:53 +02:00
|
|
|
typedef struct {
|
|
|
|
SIZE sizeDragImage;
|
|
|
|
POINT ptOffset;
|
|
|
|
HBITMAP hbmpDragImage;
|
|
|
|
COLORREF crColorKey;
|
|
|
|
} SHDRAGIMAGE, *LPSHDRAGIMAGE;
|
|
|
|
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IDragSourceHelper
|
2002-08-13 05:21:53 +02:00
|
|
|
#define IDragSourceHelper_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(InitializeFromBitmap)(THIS_ LPSHDRAGIMAGE pshdi, IDataObject * pDataObject) PURE; \
|
|
|
|
STDMETHOD(InitializeFromWindow)(THIS_ HWND hwnd, POINT * ppt, IDataObject * pDataObject) PURE;
|
2002-08-13 05:21:53 +02:00
|
|
|
ICOM_DEFINE(IDragSourceHelper,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
2002-08-13 05:21:53 +02:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2002-08-13 05:21:53 +02:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IDragSourceHelper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IDragSourceHelper_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IDragSourceHelper_Release(p) (p)->lpVtbl->Release(p)
|
2002-08-13 05:21:53 +02:00
|
|
|
/*** IDropSource methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IDragSourceHelper_InitializeFromBitmap(p,a,b) (p)->lpVtbl->InitializeFromBitmap(p,a,b)
|
|
|
|
#define IDragSourceHelper_InitializeFromWindow(p,a,b,c) (p)->lpVtbl->InitializeFromWindow(p,a,b,c)
|
|
|
|
#endif
|
2002-08-13 05:21:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDropTargetHelper interface
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IDropTargetHelper
|
2002-08-13 05:21:53 +02:00
|
|
|
#define IDropTargetHelper_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(DragEnter)(THIS_ HWND hwndTarget, IDataObject * pDataObject, POINT * ppt, DWORD dwEffect) PURE; \
|
|
|
|
STDMETHOD(DragLeave)(THIS) PURE; \
|
|
|
|
STDMETHOD(DragOver)(THIS_ POINT * ppt, DWORD dwEffect) PURE; \
|
|
|
|
STDMETHOD(Drop)(THIS_ IDataObject * pDataObject, POINT * ppt,DWORD dwEffect) PURE; \
|
|
|
|
STDMETHOD(Show)(THIS_ BOOL fShow) PURE;
|
2002-08-13 05:21:53 +02:00
|
|
|
ICOM_DEFINE(IDropTargetHelper,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
2002-08-13 05:21:53 +02:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2002-08-13 05:21:53 +02:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IDropTargetHelper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IDropTargetHelper_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IDropTargetHelper_Release(p) (p)->lpVtbl->Release(p)
|
2002-08-13 05:21:53 +02:00
|
|
|
/*** IDropTargetHelper methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IDropTargetHelper_DragEnter(p,a,b,c,d) (p)->lpVtbl->DragEnter(p,a,b,c,d)
|
|
|
|
#define IDropTargetHelper_DragLeave(p) (p)->lpVtbl->DragLeave(p)
|
|
|
|
#define IDropTargetHelper_DragOver(p,a,b) (p)->lpVtbl->DragOver(p,a,b)
|
|
|
|
#define IDropTargetHelper_Drop(p,a,b,c) (p)->lpVtbl->Drop(p,a,b,c)
|
|
|
|
#define IDropTargetHelper_Show(p,a) (p)->lpVtbl->Show(p,a,b,c,d)
|
|
|
|
#endif
|
2002-08-13 05:21:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
|
|
|
#endif /* __WINE_WINE_OBJ_DRAGDROPHELPER_H */
|