diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/General/gen_ml/skinning.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Plugins/General/gen_ml/skinning.h')
-rw-r--r-- | Src/Plugins/General/gen_ml/skinning.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Src/Plugins/General/gen_ml/skinning.h b/Src/Plugins/General/gen_ml/skinning.h new file mode 100644 index 00000000..ccb0d7c9 --- /dev/null +++ b/Src/Plugins/General/gen_ml/skinning.h @@ -0,0 +1,26 @@ +#ifndef NULLOSFT_MEDIALIBRARY_SKINNING_HEADER +#define NULLOSFT_MEDIALIBRARY_SKINNING_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include <wtypes.h> + +typedef LPVOID HMLIMGLST; +typedef INT (CALLBACK *MENUCUSTOMIZEPROC)(INT /*action*/, HMENU /*hMenu*/, HDC /*hdc*/, LPARAM /*param*/, ULONG_PTR /*user*/); + +BOOL SkinWindow(HWND hwndToSkin, UINT style); +BOOL SkinWindowEx(HWND hwndToSkin, INT type, UINT style); +BOOL UnskinWindow(HWND hwndToUnskin); +BOOL TrackSkinnedPopupMenuEx(HMENU hmenu, UINT fuFlags, INT x, INT y, HWND hwnd, LPTPMPARAMS lptpm, + HMLIMGLST hmlil, INT width, UINT skinStyle, MENUCUSTOMIZEPROC customProc, ULONG_PTR customParam); + +BOOL IsSkinnedPopupEnabled(BOOL fIgnoreCache); +BOOL EnableSkinnedPopup(BOOL fEnable); + +// you can call this from WM_CONTEXTMENU +HANDLE InitSkinnedPopupHook(HWND hwndOwner, HMLIMGLST hmlil, INT width, UINT skinStyle, MENUCUSTOMIZEPROC customProc, ULONG_PTR customParam); +void RemoveSkinnedPopupHook(HANDLE hPopupHook); + +#endif //NULLOSFT_MEDIALIBRARY_SKINNING_HEADER
\ No newline at end of file |