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.

67 lines
2.0 KiB

  1. #ifndef _ITBAR_H
  2. #define _ITBAR_H
  3. // initial layout information
  4. typedef struct tagBANDSAVE
  5. {
  6. UINT wID;
  7. UINT fStyle;
  8. UINT cx;
  9. } BANDSAVE, *PBANDSAVE;
  10. // CItnernet Toolbar - Private commands
  11. #define CITIDM_ONINTERNET 1 // nCmdexecopt ? Web : Shell
  12. #define CITE_INTERNET 0
  13. #define CITE_SHELL 1
  14. #define CITE_QUERY 2
  15. #define CITIDM_THEATER 2 // nCmdexecopt..
  16. #define CITIDM_TEXTLABELS 3 // Toggle Text Labels
  17. // the modes for theater mode
  18. #define THF_ON 0
  19. #define THF_OFF 1
  20. #define THF_UNHIDE 2
  21. #define THF_HIDE 3
  22. // Indicies for Coolbar bands
  23. // These indexes are 1 based since band array is memset to 0 and ShowDW would
  24. // think that an unused item would belong to IDX0.
  25. // IMPORTANT: don't change the value of anything between CBIDX_FIRST and CBIDX_LAST.
  26. // CInternetToolbar::_LoadUpgradeSettings assumes these values haven't changed from
  27. // version to version.
  28. #define CBIDX_MENU 1
  29. #define CBIDX_TOOLS 2
  30. #define CBIDX_LINKS 3
  31. #define CBIDX_ADDRESS 4
  32. #define CBIDX_BRAND 5
  33. #define CBIDX_FIRST CBIDX_MENU
  34. #define CBIDX_LAST CBIDX_BRAND
  35. #define MAXEXTERNALBANDS 16
  36. #define CBIDX_EXTERNALFIRST (CBIDX_LAST + 1)
  37. #define CBIDX_EXTERNALLAST (CBIDX_EXTERNALFIRST + MAXEXTERNALBANDS - 1)
  38. #define CBANDSMAX (CBIDX_LAST + MAXEXTERNALBANDS)
  39. #define CITIDM_VIEWEXTERNALBAND_FIRST 30
  40. #define CITIDM_VIEWEXTERNALBAND_LAST (CITIDM_VIEWEXTERNALBAND_FIRST + MAXEXTERNALBANDS - 1)
  41. #define BandIDtoIndex(hwnd, idx) SendMessage(hwnd, RB_IDTOINDEX, idx, 0)
  42. // Indices for Toolbar imagelists
  43. #define IMLIST_DEFAULT 0
  44. #define IMLIST_HOT 1
  45. #define ITBS_SHELL 0
  46. #define ITBS_WEB 1
  47. #define ITBS_EXPLORER 2
  48. IStream *GetITBarStream(BOOL fWebBrowser, DWORD grfMode);
  49. // number of bitmaps in the IDB_IETOOLBAR strips
  50. #define MAX_TB_BUTTONS 16
  51. #define SHELLGLYPHS_OFFSET MAX_TB_BUTTONS
  52. #endif /* _ITBAR_H */