menu.h 940 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_MENU_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_MENU_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. class ifc_menucustomizer;
  8. #define MENU_RATING 2
  9. #define MENU_TOOLBAR 3
  10. #define MENU_ADDRESSBAR 4
  11. #define MCF_RATINGMASK 0xF0000000
  12. #define MCF_RATING1 0x10000000
  13. #define MCF_RATING2 0x20000000
  14. #define MCF_RATING3 0x30000000
  15. #define MCF_RATING4 0x40000000
  16. #define MCF_RATING5 0x50000000
  17. #define RATINGTOMCF(__rating) ((0x0F & (__rating)) << 24)
  18. #define RATINGFROMMCF(__mcf) (0x0F & ((__mcf) >> 24))
  19. HMENU Menu_GetMenu(INT menuKind, UINT flags);
  20. void Menu_ReleaseMenu(HMENU hMenu, INT menuKind);
  21. BOOL Menu_TrackPopup(HMENU hMenu, UINT fuFlags, INT x, INT y, HWND hwnd, LPTPMPARAMS lptpm);
  22. HANDLE Menu_InitializeHook(HWND hwnd, ifc_menucustomizer *customizer);
  23. HRESULT Menu_RemoveHook(HANDLE menuHook);
  24. #endif //NULLSOFT_WINAMP_OMBROWSER_MENU_HEADER