1999-02-13 10:13:49 +01:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces and APIs related to OLE Drag and Drop.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_DRAGDROP_H
|
|
|
|
#define __WINE_WINE_OBJ_DRAGDROP_H
|
|
|
|
|
|
|
|
#include "winnt.h"
|
|
|
|
#include "windef.h"
|
1999-02-28 20:14:33 +01:00
|
|
|
#include "wine/obj_base.h"
|
|
|
|
#include "wine/obj_dataobject.h"
|
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
|
|
|
/*****************************************************************************
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
#define ICOM_INTERFACE IDropSource
|
1999-02-22 10:53:59 +01:00
|
|
|
#define IDropSource_METHODS \
|
1999-04-25 21:01:52 +02:00
|
|
|
ICOM_METHOD2(HRESULT, QueryContinueDrag, BOOL, fEscapePressed, DWORD, grfKeyState) \
|
|
|
|
ICOM_METHOD1(HRESULT, GiveFeedback, DWORD, dwEffect)
|
1999-02-22 10:53:59 +01:00
|
|
|
#define IDropSource_IMETHODS \
|
1999-07-24 12:24:09 +02:00
|
|
|
IUnknown_IMETHODS \
|
|
|
|
IDropSource_METHODS
|
1999-02-22 10:53:59 +01:00
|
|
|
ICOM_DEFINE(IDropSource,IUnknown)
|
1999-02-13 10:13:49 +01:00
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
1999-03-15 17:15:17 +01:00
|
|
|
#define IDropSource_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IDropSource_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IDropSource_Release(p) ICOM_CALL (Release,p)
|
1999-07-24 12:24:09 +02:00
|
|
|
/*** IDropSource methods ***/
|
1999-02-13 10:13:49 +01:00
|
|
|
#define IDropSource_QueryContinueDrag(p,a,b) ICOM_CALL2(QueryContinueDrag,p,a,b)
|
|
|
|
#define IDropSource_GiveFeedback(p,a) ICOM_CALL1(GiveFeedback,p,a)
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDropTarget interface
|
|
|
|
*/
|
|
|
|
#define ICOM_INTERFACE IDropTarget
|
1999-02-22 10:53:59 +01:00
|
|
|
#define IDropTarget_METHODS \
|
1999-04-25 21:01:52 +02:00
|
|
|
ICOM_METHOD4(HRESULT, DragEnter, IDataObject*, pDataObject, DWORD, grfKeyState, POINTL, pt, DWORD*, pdwEffect) \
|
|
|
|
ICOM_METHOD3(HRESULT, DragOver, DWORD, grfKeyState, POINTL, pt, DWORD*, pdwEffect) \
|
|
|
|
ICOM_METHOD(HRESULT, DragLeave) \
|
|
|
|
ICOM_METHOD4(HRESULT, Drop, IDataObject*, pDataObject, DWORD, grfKeyState, POINTL, pt, DWORD*, pdwEffect)
|
1999-02-22 10:53:59 +01:00
|
|
|
#define IDropTarget_IMETHODS \
|
1999-07-24 12:24:09 +02:00
|
|
|
IUnknown_IMETHODS \
|
|
|
|
IDropTarget_METHODS
|
1999-02-22 10:53:59 +01:00
|
|
|
ICOM_DEFINE(IDropTarget,IUnknown)
|
1999-02-13 10:13:49 +01:00
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
1999-03-15 17:15:17 +01:00
|
|
|
#define IDropTarget_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IDropTarget_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IDropTarget_Release(p) ICOM_CALL (Release,p)
|
1999-02-13 10:13:49 +01:00
|
|
|
/*** IDropTarget methods ***/
|
|
|
|
#define IDropTarget_DragEnter(p,a,b,c,d) ICOM_CALL4(DragEnter,p,a,b,c,d)
|
|
|
|
#define IDropTarget_DragOver(p,a,b,c) ICOM_CALL3(DragOver,p,a,b,c)
|
|
|
|
#define IDropTarget_DragLeave(p) ICOM_CALL(DragLeave,p)
|
|
|
|
#define IDropTarget_Drop(p,a,b,c,d) ICOM_CALL4(Drop,p,a,b,c,d)
|
|
|
|
|
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 */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|