Update of /cvsroot/pywin32/pywin32/com/win32com/src/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25558/include
Added Files:
PyIDropSource.h PyIDropTarget.h
Log Message:
Add IDropSource and IDropTarget interfaces.
--- NEW FILE: PyIDropSource.h ---
// This file declares the IDropSource Interface and Gateway for Python.
// Generated by makegw.py
// ---------------------------------------------------
//
// Interface Declaration
class PyIDropSource : public PyIUnknown
{
public:
MAKE_PYCOM_CTOR(PyIDropSource);
static IDropSource *GetI(PyObject *self);
static PyComTypeObject type;
// The Python methods
static PyObject *QueryContinueDrag(PyObject *self, PyObject *args);
static PyObject *GiveFeedback(PyObject *self, PyObject *args);
protected:
PyIDropSource(IUnknown *pdisp);
~PyIDropSource();
};
// ---------------------------------------------------
//
// Gateway Declaration
class PyGDropSource : public PyGatewayBase, public IDropSource
{
protected:
PyGDropSource(PyObject *instance) : PyGatewayBase(instance) { ; }
PYGATEWAY_MAKE_SUPPORT2(PyGDropSource, IDropSource, IID_IDropSource, PyGatewayBase)
// IDropSource
STDMETHOD(QueryContinueDrag)(
BOOL fEscapePressed,
DWORD grfKeyState);
STDMETHOD(GiveFeedback)(
DWORD dwEffect);
};
--- NEW FILE: PyIDropTarget.h ---
// This file declares the IDropTarget Interface and Gateway for Python.
// Generated by makegw.py
// ---------------------------------------------------
//
// Interface Declaration
class PyIDropTarget : public PyIUnknown
{
public:
MAKE_PYCOM_CTOR(PyIDropTarget);
static IDropTarget *GetI(PyObject *self);
static PyComTypeObject type;
// The Python methods
static PyObject *DragEnter(PyObject *self, PyObject *args);
static PyObject *DragOver(PyObject *self, PyObject *args);
static PyObject *DragLeave(PyObject *self, PyObject *args);
static PyObject *Drop(PyObject *self, PyObject *args);
protected:
PyIDropTarget(IUnknown *pdisp);
~PyIDropTarget();
};
// ---------------------------------------------------
//
// Gateway Declaration
class PyGDropTarget : public PyGatewayBase, public IDropTarget
{
protected:
PyGDropTarget(PyObject *instance) : PyGatewayBase(instance) { ; }
PYGATEWAY_MAKE_SUPPORT2(PyGDropTarget, IDropTarget, IID_IDropTarget, PyGatewayBase)
// IDropTarget
STDMETHOD(DragEnter)(
IDataObject * pDataObj,
DWORD grfKeyState,
POINTL pt,
DWORD * pdwEffect);
STDMETHOD(DragOver)(
DWORD grfKeyState,
POINTL pt,
DWORD * pdwEffect);
STDMETHOD(DragLeave)(
void);
STDMETHOD(Drop)(
IDataObject * pDataObj,
DWORD grfKeyState,
POINTL pt,
DWORD * pdwEffect);
};
|