windows-nt/Source/XPSP1/NT/shell/shell32/duidrag.h

32 lines
789 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
class CDUIDropTarget:
public IDropTarget
{
protected:
ULONG _cRef;
IDropTarget * _pDT;
IDropTarget * _pNextDT;
public:
CDUIDropTarget();
// IUnknown methods
STDMETHODIMP QueryInterface(REFIID, LPVOID *);
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
// IDropTarget methods
STDMETHODIMP DragEnter(IDataObject *pDataObj, DWORD grfKeyState, POINTL ptl, DWORD *pdwEffect);
STDMETHODIMP DragOver(DWORD grfKeyState, POINTL ptl, DWORD *pdwEffect);
STDMETHODIMP DragLeave(void);
STDMETHODIMP Drop(IDataObject *pDataObj, DWORD grfKeyState, POINTL ptl, DWORD *pdwEffect);
HRESULT Initialize (LPITEMIDLIST pidl, HWND hWnd, IDropTarget **pdt);
private:
~CDUIDropTarget();
VOID _Cleanup();
};