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.

94 lines
4.1 KiB

  1. #ifndef __LEGACY_H__
  2. #define __LEGACY_H__
  3. #include "logo.h"
  4. #define CGID_MenuBand CLSID_MenuBand
  5. #define CGID_ISFBand CLSID_ISFBand
  6. #define SID_SDropBlocker CLSID_SearchBand
  7. // REARCHITECT: An exercise for the reader, how many of these are unused now?
  8. #define MBANDCID_GETFONTS 1 // Command Id for getting font info
  9. #define MBANDCID_RECAPTURE 2 // Take the mouse capture back
  10. #define MBANDCID_NOTAREALSITE 3 // This is not a real site
  11. #define MBANDCID_SELECTITEM 5 // Select an item
  12. #define MBANDCID_POPUPITEM 6 // Popup an item
  13. #define MBANDCID_ITEMDROPPED 7 // Item was dropped into a menu
  14. #define MBANDCID_DRAGENTER 8 // Entering a drag operation
  15. #define MBANDCID_DRAGLEAVE 9 // Leaving a Drag operation
  16. #define MBANDCID_ISVERTICAL 10 // Is this a vertical band
  17. #define MBANDCID_RESTRICT_CM 11 // Disallow ContextMenu
  18. #define MBANDCID_RESTRICT_DND 12 // Disallow Drag And Drop
  19. #define MBANDCID_EXITMENU 13 // Nofity: Exiting Menu
  20. #define MBANDCID_ENTERMENU 14 // Notify: Entering Menu
  21. #define MBANDCID_SETACCTITLE 15 // Sets the title of the band
  22. #define MBANDCID_SETICONSIZE 16
  23. #define MBANDCID_SETFONTS 17
  24. #define MBANDCID_SETSTATEOBJECT 18 // Sets the global state
  25. #define MBANDCID_ISINSUBMENU 19 // Returns S_OK if in submenu, S_FALSE if not.
  26. #define MBANDCID_EXPAND 20 // Cause this band to expand
  27. #define MBANDCID_KEYBOARD 21 // Popuped up because of a keyboard action
  28. #define MBANDCID_DRAGCANCEL 22 // Close menus because of drag
  29. #define MBANDCID_REPOSITION 23 //
  30. #define MBANDCID_EXECUTE 24 // sent to the site when somethis is executed.
  31. #define MBANDCID_ISTRACKING 25 // Tracking a Context Menu
  32. HRESULT ToolbarMenu_Popup(HWND hwnd, LPRECT prc, IUnknown* punk, HWND hwndTB, int idMenu, DWORD dwFlags);
  33. class CISFBand;
  34. HRESULT CISFBand_CreateEx(IShellFolder * psf, LPCITEMIDLIST pidl, REFIID riid, void **ppv);
  35. typedef enum {
  36. ISFBID_PRIVATEID = 1,
  37. ISFBID_ISITEMVISIBLE = 2,
  38. ISFBID_CACHEPOPUP = 3,
  39. ISFBID_GETORDERSTREAM = 4,
  40. ISFBID_SETORDERSTREAM = 5,
  41. } ISFBID_FLAGS;
  42. HRESULT CExtractImageTask_Create( CLogoBase* plb,
  43. LPEXTRACTIMAGE pExtract,
  44. LPCWSTR pszCache,
  45. DWORD dwItem,
  46. int iIcon,
  47. DWORD dwFlags,
  48. LPRUNNABLETASK * ppTask );
  49. #define EITF_SAVEBITMAP 0x00000001 // do not delete bitmap on destructor
  50. #define EITF_ALWAYSCALL 0x00000002 // always call the update whether extract succeded or not
  51. extern long g_lMenuPopupTimeout;
  52. #define QLCMD_SINGLELINE 1
  53. #define CITIDM_VIEWTOOLS 4 // This toggles on/off
  54. #define CITIDM_VIEWADDRESS 5 // This toggles on/off
  55. #define CITIDM_VIEWLINKS 6 // This toggles on/off
  56. #define CITIDM_SHOWTOOLS 7 // nCmdExecOpt: TRUE or FALSE
  57. #define CITIDM_SHOWADDRESS 8 // nCmdExecOpt: TRUE or FALSE
  58. #define CITIDM_SHOWLINKS 9 // nCmdExecOpt: TRUE or FALSE
  59. #define CITIDM_EDITPAGE 10
  60. #define CITIDM_BRANDSIZE 11 // brand at minimum always or not
  61. #define CITIDM_VIEWMENU 12 // nCmdExecOpt: TRUE or FALSE
  62. #define CITIDM_VIEWAUTOHIDE 13 // nCmdExecOpt: TRUE or FALSE
  63. #define CITIDM_GETMINROWHEIGHT 14 // gets the minimum height of row 0... for branding
  64. #define CITIDM_SHOWMENU 15
  65. #define CITIDM_STATUSCHANGED 16
  66. #define CITIDM_GETDEFAULTBRANDCOLOR 17
  67. #define CITIDM_DISABLESHOWMENU 18
  68. #define CITIDM_SET_DIRTYBIT 19 // nCmdexecopt equals TRUE or FALSE which will overwrite _fDirty.
  69. #define CITIDM_VIEWTOOLBARCUSTOMIZE 20
  70. #define CITIDM_VIEWEXTERNALBAND_BYCLASSID 21
  71. #define CITIDM_DISABLEVISIBILITYSAVE 22 // bands can choose not to persist their visibility state
  72. #ifdef UNIX
  73. #define CITIDM_SHOWBRAND 25 //nCmdExecOpt: TRUE or FALSE
  74. #endif
  75. #define CITIDM_GETFOLDERSEARCHES 26
  76. // iBar/xBar stuff
  77. #define CITIDM_VIEWLOCKTOOLBAR 27
  78. #define TOOLBAR_MASK 0x80000000
  79. #endif // __LEGACY_H__