Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
789 B

  1. class CDUIDropTarget:
  2. public IDropTarget
  3. {
  4. protected:
  5. ULONG _cRef;
  6. IDropTarget * _pDT;
  7. IDropTarget * _pNextDT;
  8. public:
  9. CDUIDropTarget();
  10. // IUnknown methods
  11. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  12. STDMETHODIMP_(ULONG) AddRef();
  13. STDMETHODIMP_(ULONG) Release();
  14. // IDropTarget methods
  15. STDMETHODIMP DragEnter(IDataObject *pDataObj, DWORD grfKeyState, POINTL ptl, DWORD *pdwEffect);
  16. STDMETHODIMP DragOver(DWORD grfKeyState, POINTL ptl, DWORD *pdwEffect);
  17. STDMETHODIMP DragLeave(void);
  18. STDMETHODIMP Drop(IDataObject *pDataObj, DWORD grfKeyState, POINTL ptl, DWORD *pdwEffect);
  19. HRESULT Initialize (LPITEMIDLIST pidl, HWND hWnd, IDropTarget **pdt);
  20. private:
  21. ~CDUIDropTarget();
  22. VOID _Cleanup();
  23. };