1
0

local_menu.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef NULLOSFT_ONLINEMEDIA_PLUGIN_MENU_HEADER
  2. #define NULLOSFT_ONLINEMEDIA_PLUGIN_MENU_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #include "../../General/gen_ml/ml_ipc_0313.h"
  8. class OmService;
  9. #define OMMENU_SERVICECONTEXT 0
  10. #define OMMENU_GALERYCONTEXT 1
  11. #define OMMENU_RATING 2
  12. #define OMMENU_TOOLBAR 3
  13. #define MCF_VIEW 0x00000001
  14. #define MCF_NAVIGATION 0x00000004
  15. #define MCF_VIEWACTIVE 0x00000008
  16. #define MCF_RATINGMASK 0xF0000000
  17. #define MCF_RATING1 0x10000000
  18. #define MCF_RATING2 0x20000000
  19. #define MCF_RATING3 0x30000000
  20. #define MCF_RATING4 0x40000000
  21. #define MCF_RATING5 0x50000000
  22. #define RATINGTOMCF(__rating) ((0x0F & (__rating)) << 24)
  23. #define RATINGFROMMCF(__mcf) (0x0F & ((__mcf) >> 24))
  24. HMENU Menu_GetMenu(INT menuKind, UINT flags);
  25. void Menu_ReleaseMenu(HMENU hMenu, INT menuKind);
  26. HMENU Menu_FindRatingMenu(HMENU hMenu);
  27. BOOL Menu_SetRatingValue(HMENU ratingMenu, INT ratingValue);
  28. INT DoTrackPopup(HMENU hMenu, UINT fuFlags, INT x, INT y, HWND hwnd, LPTPMPARAMS lptpm);
  29. #endif //NULLOSFT_ONLINEMEDIA_PLUGIN_MENU_HEADER