Leaked source code of windows server 2003
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.

54 lines
1.9 KiB

  1. //
  2. // ITBDROP_H
  3. // Header file for the internet toolbar's drop target.
  4. //
  5. // History:
  6. // 8/22/96 - t-mkim: created
  7. #ifndef _ITBDROP_H
  8. #define _ITBDROP_H
  9. #define TBIDM_BACK 0x120
  10. #define TBIDM_FORWARD 0x121
  11. #define TBIDM_HOME 0x122
  12. #define TBIDM_SEARCH 0x123 // copy of this in shdocvw\basesb.cpp
  13. #define TBIDM_STOPDOWNLOAD 0x124
  14. #define TBIDM_REFRESH 0x125
  15. #define TBIDM_FAVORITES 0x126
  16. #define TBIDM_THEATER 0x128
  17. #define TBIDM_HISTORY 0x12E
  18. #define TBIDM_PREVIOUSFOLDER 0x130
  19. #define TBIDM_CONNECT 0x131
  20. #define TBIDM_DISCONNECT 0x132
  21. #define TBIDM_ALLFOLDERS 0x133
  22. #define TBIDM_MEDIABAR 0x134
  23. #define REGSTR_SET_HOMEPAGE_RESTRICTION TEXT("Software\\Policies\\Microsoft\\Internet Explorer\\Control Panel")
  24. #define REGVAL_HOMEPAGE_RESTRICTION TEXT("HomePage")
  25. // Class for implementing a single drop target for all the various and sundry things
  26. // that can be dropped onto on the internet toolbar.
  27. class CITBarDropTarget : public IDropTarget
  28. {
  29. private:
  30. ULONG _cRef;
  31. HWND _hwndParent;
  32. IDropTarget *_pdrop; // hand on to the the favorites target
  33. int _iDropType; // Which format data is in.
  34. int _iTarget; // what item are we running for
  35. public:
  36. CITBarDropTarget(HWND hwnd, int iTarget);
  37. STDMETHODIMP QueryInterface(REFIID iid, void **ppvObj);
  38. STDMETHODIMP_(ULONG) AddRef (void);
  39. STDMETHODIMP_(ULONG) Release (void);
  40. STDMETHODIMP DragEnter(IDataObject *dtobj, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect);
  41. STDMETHODIMP DragOver(DWORD grfKeyState, POINTL pt, DWORD *pdwEffect);
  42. STDMETHODIMP DragLeave(void);
  43. STDMETHODIMP Drop(IDataObject *pdtobj, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect);
  44. };
  45. #endif //_ITBDROP_H