itbdrop.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:

Windows Kernel

Development Platform:

Visual C++

  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 shdocvwbasesb.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. #ifdef ENABLE_CHANNELPANE
  19. #define TBIDM_CHANNELS          0x12F
  20. #endif
  21. #define TBIDM_PREVIOUSFOLDER    0x130
  22. #define TBIDM_CONNECT           0x131
  23. #define TBIDM_DISCONNECT        0x132
  24. #define TBIDM_ALLFOLDERS        0x133
  25. #define REGSTR_SET_HOMEPAGE_RESTRICTION               TEXT("Software\Policies\Microsoft\Internet Explorer\Control Panel")
  26. #define REGVAL_HOMEPAGE_RESTRICTION                   TEXT("HomePage")
  27. // Class for implementing a single drop target for all the various and sundry things
  28. // that can be dropped onto on the internet toolbar.
  29. class CITBarDropTarget : public IDropTarget
  30. {
  31. private:
  32.     ULONG _cRef;
  33.     HWND _hwndParent;
  34.     IDropTarget *_pdrop;    // hand on to the the favorites target
  35.     int _iDropType;         // Which format data is in.
  36.     int _iTarget;           // what item are we running for
  37. public:
  38.     CITBarDropTarget(HWND hwnd, int iTarget);
  39.     STDMETHODIMP QueryInterface(REFIID iid, void **ppvObj);
  40.     STDMETHODIMP_(ULONG) AddRef (void);
  41.     STDMETHODIMP_(ULONG) Release (void);
  42.     STDMETHODIMP DragEnter(IDataObject *dtobj, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect);
  43.     STDMETHODIMP DragOver(DWORD grfKeyState, POINTL pt, DWORD *pdwEffect);
  44.     STDMETHODIMP DragLeave(void);
  45.     STDMETHODIMP Drop(IDataObject *pdtobj, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect);
  46. };
  47. #endif //_ITBDROP_H