menu.cpp 661 B

12345678910111213141516171819202122232425
  1. #include "main.h"
  2. #include "./menu.h"
  3. #include "./resource.h"
  4. #include "../gen_ml/ml_ipc_0313.h"
  5. INT Menu_TrackPopup(HMENU hMenu, UINT fuFlags, INT x, INT y, HWND hwnd, LPTPMPARAMS lptpm)
  6. {
  7. if (NULL == hMenu)
  8. return NULL;
  9. MLSKINNEDPOPUP popup;
  10. ZeroMemory(&popup, sizeof(MLSKINNEDPOPUP));
  11. popup.cbSize = sizeof(MLSKINNEDPOPUP);
  12. popup.hmenu = hMenu;
  13. popup.fuFlags = fuFlags;
  14. popup.x = x;
  15. popup.y = y;
  16. popup.hwnd = hwnd;
  17. popup.lptpm = lptpm;
  18. popup.skinStyle = SMS_USESKINFONT/*SMS_SYSCOLORS*/;
  19. popup.customProc = NULL;
  20. popup.customParam = 0;
  21. return (INT)SENDMLIPC(plugin.hwndLibraryParent, ML_IPC_TRACKSKINNEDPOPUPEX, &popup);
  22. }