diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/General/gen_ml/skinning.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
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 |