1
0

skinning.h 1.0 KB

1234567891011121314151617181920212223242526
  1. #ifndef NULLOSFT_MEDIALIBRARY_SKINNING_HEADER
  2. #define NULLOSFT_MEDIALIBRARY_SKINNING_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. typedef LPVOID HMLIMGLST;
  8. typedef INT (CALLBACK *MENUCUSTOMIZEPROC)(INT /*action*/, HMENU /*hMenu*/, HDC /*hdc*/, LPARAM /*param*/, ULONG_PTR /*user*/);
  9. BOOL SkinWindow(HWND hwndToSkin, UINT style);
  10. BOOL SkinWindowEx(HWND hwndToSkin, INT type, UINT style);
  11. BOOL UnskinWindow(HWND hwndToUnskin);
  12. BOOL TrackSkinnedPopupMenuEx(HMENU hmenu, UINT fuFlags, INT x, INT y, HWND hwnd, LPTPMPARAMS lptpm,
  13. HMLIMGLST hmlil, INT width, UINT skinStyle, MENUCUSTOMIZEPROC customProc, ULONG_PTR customParam);
  14. BOOL IsSkinnedPopupEnabled(BOOL fIgnoreCache);
  15. BOOL EnableSkinnedPopup(BOOL fEnable);
  16. // you can call this from WM_CONTEXTMENU
  17. HANDLE InitSkinnedPopupHook(HWND hwndOwner, HMLIMGLST hmlil, INT width, UINT skinStyle, MENUCUSTOMIZEPROC customProc, ULONG_PTR customParam);
  18. void RemoveSkinnedPopupHook(HANDLE hPopupHook);
  19. #endif //NULLOSFT_MEDIALIBRARY_SKINNING_HEADER