BuildTools
Qt
Src
Agave
Components
Elevator
Mastering
Plugins
ReplayGainAnalysis
WAT
Wasabi
Wasabi2
Winamp
aacPlus
aacdec
aacdec-mft
adpcm
alac
albumart
apev2
auth
bmp
burnlib
codesign
config
devices
external_dependencies
f263
filereader
freetypewac
gif
gracenote
h264
h264dec
id3v2
ie_plugin
installer
jpeg
libvp6
libvpShared
mp3-mpg123
mp4v
mpeg4dec
nde
nprt_plugin
ns-eel
ns-eel2
nsavi
nsmkv
nsutil
nsv
nsvdec_vp3
nsvdec_vp5
nsvdec_vp6
nswasabi
nu
threadpool
Alias.h
AudioOutput.h
AutoChar.h
AutoCharFn.h
AutoHeader.h
AutoLock.h
AutoUrl.h
AutoWide.h
AutoWideFn.h
CCVersion.cpp
CCVersion.h
CGlobalAtom.h
ChildSizer.cpp
ChildSizer.h
ComboBox.h
Config.h
ConfigCOM.cpp
ConfigCOM.h
DialogSkinner.cpp
DialogSkinner.h
GaplessRingBuffer.cpp
GaplessRingBuffer.h
GrowBuf.h
HTMLContainer.cpp
HTMLContainer.h
HTMLContainer2.cpp
HTMLContainer2.h
LockFreeItem.h
LockFreeStack.h
MainThread.cpp
MainThread.h
MakeThunk.h
MediaLibraryInterface.cpp
MediaLibraryInterface.h
NonBlockLock.h
Nullsoft Utility Library.txt
Pairs.h
ProgressTracker.h
ReEntry.h
RedBlackTree.cpp
RedBlackTree.h
RingBuffer.cpp
RingBuffer.h
SampleQueue.h
SendTo.h
ServiceBuilder.h
ServiceWatcher.cpp
ServiceWatcher.h
Singleton.h
Slider.h
SpillBuffer.cpp
SpillBuffer.h
ThreadQueue.cpp
ThreadQueue.h
Vectors.h
VideoClock.h
bitbuffer.cpp
bitbuffer.h
cast64.h
comboskin.cpp
comboskin.h
cstrlib.cpp
cstrlib.h
dispatchTable.h
factoryt.h
listview.cpp
listview.h
menuHelpers.cpp
menuHelpers.h
menushortcuts.cpp
menushortcuts.h
mtbrowser.cpp
mtbrowser.h
noarg.c
nochkclr.c
noenv.c
nomsgs.c
nonewthrow.c
nosec.c
ns_wc.h
refcount.h
regexp.cpp
regexp.h
simple_rwlock.h
smalheap.c
sort.cpp
sort.h
strsafe.c
strsafe.h
strsafe.sln
strsafe.vcproj
threadname.h
trace.cpp
trace.h
wa_str.h
windowsTheme.cpp
windowsTheme.h
winstr.c
omBrowser
pcm
pfc
playlist
plist
png
replicant
resources
tagz
tataki
theora
timer
vlb
vp32
vp6
vp8x
wbm
winampAll
winampa
xml
xspf
vcpkg-ports
.gitignore
LICENSE.md
README.md
automate-git.py
cef_x86.bat
install-packages.cmd
vcpkg_version_finder.py
winampAll_2019.sln
65 lines
3.3 KiB
C
65 lines
3.3 KiB
C
#ifndef NULLOSFT_WINAMP_WINDOWTHEME_HEADER
|
|
#define NULLOSFT_WINAMP_WINDOWTHEME_HEADER
|
|
|
|
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
|
#pragma once
|
|
#endif
|
|
|
|
#include <wtypes.h>
|
|
|
|
#define E_WINTHEME_NOTLOADED MAKE_HRESULT(0, FACILITY_ITF, 0x0201) // library not loaded
|
|
#define E_WINTHEME_LOADFAILED MAKE_HRESULT(1, FACILITY_ITF, 0x0202) // library load failed
|
|
#define E_WINTHEME_BADFUNCTION MAKE_HRESULT(1, FACILITY_ITF, 0x0203) // function was not loaded
|
|
|
|
//---------------------------------------------------------------------------
|
|
// NOTE: PartId's and StateId's used in the theme API are defined in the
|
|
// hdr file <tmschema.h> using the TM_PART and TM_STATE macros. For
|
|
// example, "TM_PART(BP, PUSHBUTTON)" defines the PartId "BP_PUSHBUTTON".
|
|
|
|
// UxTheme
|
|
|
|
typedef HANDLE UXTHEME;
|
|
|
|
typedef enum UXTHEMESIZE
|
|
{
|
|
TS_MIN, // minimum size
|
|
TS_TRUE, // size without stretching
|
|
TS_DRAW, // size that theme mgr will use to draw part
|
|
};
|
|
|
|
#ifndef ETDT_ENABLE
|
|
#define ETDT_DISABLE 0x00000001
|
|
#define ETDT_ENABLE 0x00000002
|
|
#define ETDT_USETABTEXTURE 0x00000004
|
|
#define ETDT_USEAEROWIZARDTABTEXTURE 0x00000008
|
|
#define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE)
|
|
#define ETDT_ENABLEAEROWIZARDTAB (ETDT_ENABLE | ETDT_USEAEROWIZARDTABTEXTURE)
|
|
#define ETDT_VALIDBITS (ETDT_DISABLE | ETDT_ENABLE | ETDT_USETABTEXTURE | ETDT_USEAEROWIZARDTABTEXTURE)
|
|
#endif //ETDT_ENABLE
|
|
|
|
HRESULT STDAPICALLTYPE UxTheme_LoadLibrary(void);
|
|
HRESULT STDAPICALLTYPE UxTheme_GetLoadResult(void);
|
|
HRESULT STDAPICALLTYPE UxTheme_IsThemeActive(void);
|
|
|
|
UXTHEME STDAPICALLTYPE UxOpenThemeData(HWND hwnd, LPCWSTR pszClassList);
|
|
HRESULT STDAPICALLTYPE UxCloseThemeData(UXTHEME hTheme);
|
|
HRESULT STDAPICALLTYPE UxDrawThemeBackground(UXTHEME hTheme, HDC hdc, int iPartId, int iStateId,
|
|
const RECT *pRect, OPTIONAL const RECT *pClipRect);
|
|
HRESULT STDAPICALLTYPE UxDrawThemeParentBackground(HWND hwnd, HDC hdc, const RECT *prc);
|
|
HRESULT STDAPICALLTYPE UxDrawThemeParentBackgroundEx(HWND hwnd, HDC hdc, DWORD dwFlags, const RECT *prc);
|
|
HRESULT STDAPICALLTYPE UxDrawThemeText(UXTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText,
|
|
int iCharCount, DWORD dwTextFlags, DWORD dwTextFlags2, const RECT *pRect);
|
|
COLORREF STDAPICALLTYPE UxGetThemeSysColor(UXTHEME hTheme, int iColorID);
|
|
HRESULT STDAPICALLTYPE UxGetThemeColor(UXTHEME hTheme, int iPartId, int iStateId, int iPropId, COLORREF *pColor);
|
|
HRESULT STDAPICALLTYPE UxGetThemeInt(UXTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal);
|
|
HRESULT STDAPICALLTYPE UxGetThemeMetric(UXTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, int *piVal);
|
|
HRESULT STDAPICALLTYPE UxGetThemePartSize(UXTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCRECT prc, UXTHEMESIZE eSize, SIZE *psz);
|
|
HRESULT STDAPICALLTYPE UxGetThemeBackgroundContentRect(UXTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCRECT pBoundingRect, LPRECT pContentRect);
|
|
HRESULT STDAPICALLTYPE UxSetWindowTheme(HWND hwnd, LPCWSTR pszSubAppName, LPCWSTR pszSubIdList);
|
|
BOOL STDAPICALLTYPE UxIsAppThemed(void);
|
|
BOOL STDAPICALLTYPE UxIsThemeActive(void);
|
|
BOOL STDAPICALLTYPE UxIsThemeBackgroundPartiallyTransparent(UXTHEME hTheme, int iPartId, int iStateId);
|
|
HRESULT STDAPICALLTYPE UxEnableThemeDialogTexture(HWND hwnd, DWORD dwFlags);
|
|
|
|
|
|
#endif //NULLOSFT_WINAMP_WINDOWTHEME_HEADER
|