1999-02-13 10:13:49 +01:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces and APIs related to OLE Drag and Drop.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Francis Beaudet
|
|
|
|
*
|
|
|
|
* 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
|
1999-02-13 10:13:49 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_DRAGDROP_H
|
|
|
|
#define __WINE_WINE_OBJ_DRAGDROP_H
|
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1999-02-13 10:13:49 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interfaces
|
|
|
|
*/
|
|
|
|
DEFINE_OLEGUID(IID_IDropSource, 0x00000121L, 0, 0);
|
|
|
|
typedef struct IDropSource IDropSource,*LPDROPSOURCE;
|
|
|
|
|
|
|
|
DEFINE_OLEGUID(IID_IDropTarget, 0x00000122L, 0, 0);
|
|
|
|
typedef struct IDropTarget IDropTarget,*LPDROPTARGET;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* DROPEFFECT enumeration
|
|
|
|
*/
|
1999-03-10 19:03:53 +01:00
|
|
|
#define MK_ALT (0x20)
|
1999-02-13 10:13:49 +01:00
|
|
|
#define DROPEFFECT_NONE 0
|
|
|
|
#define DROPEFFECT_COPY 1
|
|
|
|
#define DROPEFFECT_MOVE 2
|
|
|
|
#define DROPEFFECT_LINK 4
|
1999-02-22 10:53:59 +01:00
|
|
|
#define DROPEFFECT_SCROLL 0x80000000
|
1999-03-14 14:47:00 +01:00
|
|
|
#define DD_DEFSCROLLINSET 11
|
|
|
|
#define DD_DEFSCROLLDELAY 50
|
|
|
|
#define DD_DEFSCROLLINTERVAL 50
|
|
|
|
#define DD_DEFDRAGDELAY 50
|
|
|
|
#define DD_DEFDRAGMINDIST 2
|
1999-02-13 10:13:49 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDropSource interface
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IDropSource
|
1999-02-22 10:53:59 +01:00
|
|
|
#define IDropSource_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(QueryContinueDrag)(THIS_ BOOL fEscapePressed, DWORD grfKeyState) PURE; \
|
|
|
|
STDMETHOD(GiveFeedback)(THIS_ DWORD dwEffect) PURE;
|
1999-02-22 10:53:59 +01:00
|
|
|
ICOM_DEFINE(IDropSource,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-02-13 10:13:49 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
1999-02-13 10:13:49 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IDropSource_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IDropSource_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IDropSource_Release(p) (p)->lpVtbl->Release(p)
|
1999-07-24 12:24:09 +02:00
|
|
|
/*** IDropSource methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IDropSource_QueryContinueDrag(p,a,b) (p)->lpVtbl->QueryContinueDrag(p,a,b)
|
|
|
|
#define IDropSource_GiveFeedback(p,a) (p)->lpVtbl->GiveFeedback(p,a)
|
|
|
|
#endif
|
1999-02-13 10:13:49 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDropTarget interface
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IDropTarget
|
1999-02-22 10:53:59 +01:00
|
|
|
#define IDropTarget_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(DragEnter)(THIS_ IDataObject * pDataObject, DWORD grfKeyState, POINTL pt, DWORD * pdwEffect) PURE; \
|
|
|
|
STDMETHOD(DragOver)(THIS_ DWORD grfKeyState, POINTL pt, DWORD * pdwEffect) PURE; \
|
|
|
|
STDMETHOD(DragLeave)(THIS) PURE; \
|
|
|
|
STDMETHOD(Drop)(THIS_ IDataObject * pDataObject, DWORD grfKeyState, POINTL pt, DWORD * pdwEffect) PURE;
|
1999-02-22 10:53:59 +01:00
|
|
|
ICOM_DEFINE(IDropTarget,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-02-13 10:13:49 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
1999-02-13 10:13:49 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IDropTarget_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IDropTarget_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IDropTarget_Release(p) (p)->lpVtbl->Release(p)
|
1999-02-13 10:13:49 +01:00
|
|
|
/*** IDropTarget methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IDropTarget_DragEnter(p,a,b,c,d) (p)->lpVtbl->DragEnter(p,a,b,c,d)
|
|
|
|
#define IDropTarget_DragOver(p,a,b,c) (p)->lpVtbl->DragOver(p,a,b,c)
|
|
|
|
#define IDropTarget_DragLeave(p) (p)->lpVtbl->DragLeave(p)
|
|
|
|
#define IDropTarget_Drop(p,a,b,c,d) (p)->lpVtbl->Drop(p,a,b,c,d)
|
|
|
|
#endif
|
1999-02-13 10:13:49 +01:00
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1999-02-13 10:13:49 +01:00
|
|
|
#endif /* __WINE_WINE_OBJ_DRAGDROP_H */
|