Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bc5ae2fa
Commit
bc5ae2fa
authored
Nov 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Use proper dllimports for uxtheme functions.
parent
897098c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
81 deletions
+81
-81
Makefile.in
dlls/uxtheme/Makefile.in
+1
-0
uxtheme.h
include/uxtheme.h
+80
-81
No files found.
dlls/uxtheme/Makefile.in
View file @
bc5ae2fa
EXTRADEFS
=
-D_UXTHEME_
MODULE
=
uxtheme.dll
IMPORTLIB
=
uxtheme
IMPORTS
=
user32 gdi32 advapi32
...
...
include/uxtheme.h
View file @
bc5ae2fa
...
...
@@ -23,10 +23,20 @@
#include <commctrl.h>
#ifndef THEMEAPI
#ifdef _UXTHEME_
#define THEMEAPI STDAPI
#define THEMEAPI_(type) STDAPI_(type)
#else
#define THEMEAPI DECLSPEC_IMPORT STDAPI
#define THEMEAPI_(type) DECLSPEC_IMPORT STDAPI_(type)
#endif
#endif
typedef
HANDLE
HTHEME
;
HRESULT
WIN
API
CloseThemeData
(
HTHEME
hTheme
);
HRESULT
WIN
API
DrawThemeBackground
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
const
RECT
*
);
THEME
API
CloseThemeData
(
HTHEME
hTheme
);
THEME
API
DrawThemeBackground
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
const
RECT
*
);
#define DTBG_CLIPRECT 0x00000001
#define DTBG_DRAWSOLID 0x00000002
...
...
@@ -41,18 +51,14 @@ typedef struct _DTBGOPTS {
RECT
rcClip
;
}
DTBGOPTS
,
*
PDTBGOPTS
;
HRESULT
WINAPI
DrawThemeBackgroundEx
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
const
DTBGOPTS
*
);
HRESULT
WINAPI
DrawThemeEdge
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
UINT
,
UINT
,
RECT
*
);
HRESULT
WINAPI
DrawThemeIcon
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
HIMAGELIST
,
int
);
HRESULT
WINAPI
DrawThemeParentBackground
(
HWND
,
HDC
,
RECT
*
);
THEMEAPI
DrawThemeBackgroundEx
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
const
DTBGOPTS
*
);
THEMEAPI
DrawThemeEdge
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
UINT
,
UINT
,
RECT
*
);
THEMEAPI
DrawThemeIcon
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
HIMAGELIST
,
int
);
THEMEAPI
DrawThemeParentBackground
(
HWND
,
HDC
,
RECT
*
);
THEMEAPI
DrawThemeText
(
HTHEME
,
HDC
,
int
,
int
,
LPCWSTR
,
int
,
DWORD
,
DWORD
,
const
RECT
*
);
#define DTT_GRAYED 0x1
HRESULT
WINAPI
DrawThemeText
(
HTHEME
,
HDC
,
int
,
int
,
LPCWSTR
,
int
,
DWORD
,
DWORD
,
const
RECT
*
);
/* DTTOPTS.dwFlags bits */
#define DTT_TEXTCOLOR 0x00000001
#define DTT_BORDERCOLOR 0x00000002
...
...
@@ -90,7 +96,7 @@ typedef struct _DTTOPTS {
LPARAM
lParam
;
}
DTTOPTS
,
*
PDTTOPTS
;
HRESULT
WIN
API
DrawThemeTextEx
(
HTHEME
,
HDC
,
int
,
int
,
LPCWSTR
,
int
,
DWORD
,
RECT
*
,
THEME
API
DrawThemeTextEx
(
HTHEME
,
HDC
,
int
,
int
,
LPCWSTR
,
int
,
DWORD
,
RECT
*
,
const
DTTOPTS
*
);
#define ETDT_DISABLE 0x00000001
...
...
@@ -101,21 +107,20 @@ HRESULT WINAPI DrawThemeTextEx(HTHEME,HDC,int,int,LPCWSTR,int,DWORD,RECT*,
#define ETDT_ENABLEAEROWIZARDTAB (ETDT_ENABLE|ETDT_USEAEROWIZARDTABTEXTURE)
#define ETDT_VALIDBITS (ETDT_DISABLE|ETDT_ENABLE|ETDT_USETABTEXTURE|ETDT_USEAEROWIZARDTABTEXTURE)
HRESULT
WIN
API
EnableThemeDialogTexture
(
HWND
,
DWORD
);
HRESULT
WIN
API
EnableTheming
(
BOOL
);
HRESULT
WIN
API
GetCurrentThemeName
(
LPWSTR
,
int
,
LPWSTR
,
int
,
LPWSTR
,
int
);
THEME
API
EnableThemeDialogTexture
(
HWND
,
DWORD
);
THEME
API
EnableTheming
(
BOOL
);
THEME
API
GetCurrentThemeName
(
LPWSTR
,
int
,
LPWSTR
,
int
,
LPWSTR
,
int
);
#define STAP_ALLOW_NONCLIENT (1<<0)
#define STAP_ALLOW_CONTROLS (1<<1)
#define STAP_ALLOW_WEBCONTENT (1<<2)
DWORD
WINAPI
GetThemeAppProperties
(
void
);
HRESULT
WINAPI
GetThemeBackgroundContentRect
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
RECT
*
);
HRESULT
WINAPI
GetThemeBackgroundExtent
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
RECT
*
);
HRESULT
WINAPI
GetThemeBackgroundRegion
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
HRGN
*
);
HRESULT
WINAPI
GetThemeBool
(
HTHEME
,
int
,
int
,
int
,
BOOL
*
);
HRESULT
WINAPI
GetThemeColor
(
HTHEME
,
int
,
int
,
int
,
COLORREF
*
);
THEMEAPI_
(
DWORD
)
GetThemeAppProperties
(
void
);
THEMEAPI
GetThemeBackgroundContentRect
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
RECT
*
);
THEMEAPI
GetThemeBackgroundExtent
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
RECT
*
);
THEMEAPI
GetThemeBackgroundRegion
(
HTHEME
,
HDC
,
int
,
int
,
const
RECT
*
,
HRGN
*
);
THEMEAPI
GetThemeBool
(
HTHEME
,
int
,
int
,
int
,
BOOL
*
);
THEMEAPI
GetThemeColor
(
HTHEME
,
int
,
int
,
int
,
COLORREF
*
);
#if defined(_MSC_VER) || defined(__MINGW32__)
# define SZ_THDOCPROP_DISPLAYNAME L"DisplayName"
...
...
@@ -129,11 +134,11 @@ static const WCHAR SZ_THDOCPROP_TOOLTIP[] = { 'T','o','o','l','T','i','p',
static
const
WCHAR
SZ_THDOCPROP_AUTHOR
[]
=
{
'a'
,
'u'
,
't'
,
'h'
,
'o'
,
'r'
,
0
};
#endif
HRESULT
WIN
API
GetThemeDocumentationProperty
(
LPCWSTR
,
LPCWSTR
,
LPWSTR
,
int
);
HRESULT
WIN
API
GetThemeEnumValue
(
HTHEME
,
int
,
int
,
int
,
int
*
);
HRESULT
WIN
API
GetThemeFilename
(
HTHEME
,
int
,
int
,
int
,
LPWSTR
,
int
);
HRESULT
WIN
API
GetThemeFont
(
HTHEME
,
HDC
,
int
,
int
,
int
,
LOGFONTW
*
);
HRESULT
WIN
API
GetThemeInt
(
HTHEME
,
int
,
int
,
int
,
int
*
);
THEME
API
GetThemeDocumentationProperty
(
LPCWSTR
,
LPCWSTR
,
LPWSTR
,
int
);
THEME
API
GetThemeEnumValue
(
HTHEME
,
int
,
int
,
int
,
int
*
);
THEME
API
GetThemeFilename
(
HTHEME
,
int
,
int
,
int
,
LPWSTR
,
int
);
THEME
API
GetThemeFont
(
HTHEME
,
HDC
,
int
,
int
,
int
,
LOGFONTW
*
);
THEME
API
GetThemeInt
(
HTHEME
,
int
,
int
,
int
,
int
*
);
/* MAX_INTLIST_COUNT was 10 before Vista */
#define MAX_INTLIST_COUNT 402
...
...
@@ -142,7 +147,7 @@ typedef struct _INTLIST {
int
iValues
[
MAX_INTLIST_COUNT
];
}
INTLIST
,
*
PINTLIST
;
HRESULT
WIN
API
GetThemeIntList
(
HTHEME
,
int
,
int
,
int
,
INTLIST
*
);
THEME
API
GetThemeIntList
(
HTHEME
,
int
,
int
,
int
,
INTLIST
*
);
typedef
struct
_MARGINS
{
int
cxLeftWidth
;
...
...
@@ -151,8 +156,8 @@ typedef struct _MARGINS {
int
cyBottomHeight
;
}
MARGINS
,
*
PMARGINS
;
HRESULT
WIN
API
GetThemeMargins
(
HTHEME
,
HDC
,
int
,
int
,
int
,
RECT
*
,
MARGINS
*
);
HRESULT
WIN
API
GetThemeMetric
(
HTHEME
,
HDC
,
int
,
int
,
int
,
int
*
);
THEME
API
GetThemeMargins
(
HTHEME
,
HDC
,
int
,
int
,
int
,
RECT
*
,
MARGINS
*
);
THEME
API
GetThemeMetric
(
HTHEME
,
HDC
,
int
,
int
,
int
,
int
*
);
typedef
enum
{
TS_MIN
,
...
...
@@ -160,8 +165,8 @@ typedef enum {
TS_DRAW
}
THEMESIZE
;
HRESULT
WIN
API
GetThemePartSize
(
HTHEME
,
HDC
,
int
,
int
,
RECT
*
,
THEMESIZE
,
SIZE
*
);
HRESULT
WIN
API
GetThemePosition
(
HTHEME
,
int
,
int
,
int
,
POINT
*
);
THEME
API
GetThemePartSize
(
HTHEME
,
HDC
,
int
,
int
,
RECT
*
,
THEMESIZE
,
SIZE
*
);
THEME
API
GetThemePosition
(
HTHEME
,
int
,
int
,
int
,
POINT
*
);
typedef
enum
{
PO_STATE
,
...
...
@@ -171,21 +176,20 @@ typedef enum {
PO_NOTFOUND
}
PROPERTYORIGIN
;
HRESULT
WINAPI
GetThemePropertyOrigin
(
HTHEME
,
int
,
int
,
int
,
PROPERTYORIGIN
*
);
HRESULT
WINAPI
GetThemeRect
(
HTHEME
,
int
,
int
,
int
,
RECT
*
);
HRESULT
WINAPI
GetThemeString
(
HTHEME
,
int
,
int
,
int
,
LPWSTR
,
int
);
BOOL
WINAPI
GetThemeSysBool
(
HTHEME
,
int
);
COLORREF
WINAPI
GetThemeSysColor
(
HTHEME
,
int
);
HBRUSH
WINAPI
GetThemeSysColorBrush
(
HTHEME
,
int
);
HRESULT
WINAPI
GetThemeSysFont
(
HTHEME
,
int
,
LOGFONTW
*
);
HRESULT
WINAPI
GetThemeSysInt
(
HTHEME
,
int
,
int
*
);
int
WINAPI
GetThemeSysSize
(
HTHEME
,
int
);
HRESULT
WINAPI
GetThemeSysString
(
HTHEME
,
int
,
LPWSTR
,
int
);
HRESULT
WINAPI
GetThemeTextExtent
(
HTHEME
,
HDC
,
int
,
int
,
LPCWSTR
,
int
,
DWORD
,
const
RECT
*
,
RECT
*
);
HRESULT
WINAPI
GetThemeTextMetrics
(
HTHEME
,
HDC
,
int
,
int
,
TEXTMETRICW
*
);
HRESULT
WINAPI
GetThemeTransitionDuration
(
HTHEME
,
int
,
int
,
int
,
int
,
DWORD
*
);
HTHEME
WINAPI
GetWindowTheme
(
HWND
);
THEMEAPI
GetThemePropertyOrigin
(
HTHEME
,
int
,
int
,
int
,
PROPERTYORIGIN
*
);
THEMEAPI
GetThemeRect
(
HTHEME
,
int
,
int
,
int
,
RECT
*
);
THEMEAPI
GetThemeString
(
HTHEME
,
int
,
int
,
int
,
LPWSTR
,
int
);
THEMEAPI_
(
BOOL
)
GetThemeSysBool
(
HTHEME
,
int
);
THEMEAPI_
(
COLORREF
)
GetThemeSysColor
(
HTHEME
,
int
);
THEMEAPI_
(
HBRUSH
)
GetThemeSysColorBrush
(
HTHEME
,
int
);
THEMEAPI
GetThemeSysFont
(
HTHEME
,
int
,
LOGFONTW
*
);
THEMEAPI
GetThemeSysInt
(
HTHEME
,
int
,
int
*
);
THEMEAPI_
(
int
)
GetThemeSysSize
(
HTHEME
,
int
);
THEMEAPI
GetThemeSysString
(
HTHEME
,
int
,
LPWSTR
,
int
);
THEMEAPI
GetThemeTextExtent
(
HTHEME
,
HDC
,
int
,
int
,
LPCWSTR
,
int
,
DWORD
,
const
RECT
*
,
RECT
*
);
THEMEAPI
GetThemeTextMetrics
(
HTHEME
,
HDC
,
int
,
int
,
TEXTMETRICW
*
);
THEMEAPI
GetThemeTransitionDuration
(
HTHEME
,
int
,
int
,
int
,
int
,
DWORD
*
);
THEMEAPI_
(
HTHEME
)
GetWindowTheme
(
HWND
);
#define HTTB_BACKGROUNDSEG 0x0000
#define HTTB_FIXEDBORDER 0x0002
...
...
@@ -206,27 +210,26 @@ HTHEME WINAPI GetWindowTheme(HWND);
enum
WINDOWTHEMEATTRIBUTETYPE
{
WTA_NONCLIENT
=
1
};
HRESULT
WINAPI
HitTestThemeBackground
(
HTHEME
,
HDC
,
int
,
int
,
DWORD
,
const
RECT
*
,
HRGN
,
POINT
,
WORD
*
);
BOOL
WINAPI
IsAppThemed
(
void
);
BOOL
WINAPI
IsCompositionActive
(
void
);
BOOL
WINAPI
IsThemeActive
(
void
);
BOOL
WINAPI
IsThemeBackgroundPartiallyTransparent
(
HTHEME
,
int
,
int
);
BOOL
WINAPI
IsThemeDialogTextureEnabled
(
HWND
);
BOOL
WINAPI
IsThemePartDefined
(
HTHEME
,
int
,
int
);
HTHEME
WINAPI
OpenThemeData
(
HWND
,
LPCWSTR
);
HTHEME
WINAPI
OpenThemeDataEx
(
HWND
,
LPCWSTR
,
DWORD
);
HTHEME
WINAPI
OpenThemeDataForDpi
(
HWND
,
LPCWSTR
,
UINT
);
void
WINAPI
SetThemeAppProperties
(
DWORD
);
HRESULT
WINAPI
SetWindowTheme
(
HWND
,
LPCWSTR
,
LPCWSTR
);
HRESULT
WINAPI
SetWindowThemeAttribute
(
HWND
,
enum
WINDOWTHEMEATTRIBUTETYPE
,
PVOID
,
DWORD
);
THEMEAPI
HitTestThemeBackground
(
HTHEME
,
HDC
,
int
,
int
,
DWORD
,
const
RECT
*
,
HRGN
,
POINT
,
WORD
*
);
THEMEAPI_
(
BOOL
)
IsAppThemed
(
void
);
THEMEAPI_
(
BOOL
)
IsCompositionActive
(
void
);
THEMEAPI_
(
BOOL
)
IsThemeActive
(
void
);
THEMEAPI_
(
BOOL
)
IsThemeBackgroundPartiallyTransparent
(
HTHEME
,
int
,
int
);
THEMEAPI_
(
BOOL
)
IsThemeDialogTextureEnabled
(
HWND
);
THEMEAPI_
(
BOOL
)
IsThemePartDefined
(
HTHEME
,
int
,
int
);
THEMEAPI_
(
HTHEME
)
OpenThemeData
(
HWND
,
LPCWSTR
);
THEMEAPI_
(
HTHEME
)
OpenThemeDataEx
(
HWND
,
LPCWSTR
,
DWORD
);
THEMEAPI_
(
HTHEME
)
OpenThemeDataForDpi
(
HWND
,
LPCWSTR
,
UINT
);
THEMEAPI_
(
void
)
SetThemeAppProperties
(
DWORD
);
THEMEAPI
SetWindowTheme
(
HWND
,
LPCWSTR
,
LPCWSTR
);
THEMEAPI
SetWindowThemeAttribute
(
HWND
,
enum
WINDOWTHEMEATTRIBUTETYPE
,
PVOID
,
DWORD
);
/* Double-buffered Drawing API */
typedef
HANDLE
HPAINTBUFFER
;
HRESULT
WIN
API
BufferedPaintInit
(
VOID
);
HRESULT
WIN
API
BufferedPaintUnInit
(
VOID
);
THEME
API
BufferedPaintInit
(
VOID
);
THEME
API
BufferedPaintUnInit
(
VOID
);
typedef
enum
_BP_BUFFERFORMAT
{
...
...
@@ -244,17 +247,14 @@ typedef struct _BP_PAINTPARAMS
const
BLENDFUNCTION
*
pBlendFunction
;
}
BP_PAINTPARAMS
,
*
PBP_PAINTPARAMS
;
HPAINTBUFFER
WINAPI
BeginBufferedPaint
(
HDC
,
const
RECT
*
,
BP_BUFFERFORMAT
,
BP_PAINTPARAMS
*
,
HDC
*
);
HRESULT
WINAPI
EndBufferedPaint
(
HPAINTBUFFER
,
BOOL
);
HRESULT
WINAPI
BufferedPaintClear
(
HPAINTBUFFER
,
const
RECT
*
);
HRESULT
WINAPI
BufferedPaintSetAlpha
(
HPAINTBUFFER
,
const
RECT
*
,
BYTE
);
HRESULT
WINAPI
GetBufferedPaintBits
(
HPAINTBUFFER
,
RGBQUAD
**
,
int
*
);
HDC
WINAPI
GetBufferedPaintDC
(
HPAINTBUFFER
);
HDC
WINAPI
GetBufferedPaintTargetDC
(
HPAINTBUFFER
);
HRESULT
WINAPI
GetBufferedPaintTargetRect
(
HPAINTBUFFER
,
RECT
*
prc
);
THEMEAPI_
(
HPAINTBUFFER
)
BeginBufferedPaint
(
HDC
,
const
RECT
*
,
BP_BUFFERFORMAT
,
BP_PAINTPARAMS
*
,
HDC
*
);
THEMEAPI
EndBufferedPaint
(
HPAINTBUFFER
,
BOOL
);
THEMEAPI
BufferedPaintClear
(
HPAINTBUFFER
,
const
RECT
*
);
THEMEAPI
BufferedPaintSetAlpha
(
HPAINTBUFFER
,
const
RECT
*
,
BYTE
);
THEMEAPI
GetBufferedPaintBits
(
HPAINTBUFFER
,
RGBQUAD
**
,
int
*
);
THEMEAPI_
(
HDC
)
GetBufferedPaintDC
(
HPAINTBUFFER
);
THEMEAPI_
(
HDC
)
GetBufferedPaintTargetDC
(
HPAINTBUFFER
);
THEMEAPI
GetBufferedPaintTargetRect
(
HPAINTBUFFER
,
RECT
*
prc
);
/* double-buffered animation functions */
...
...
@@ -276,12 +276,11 @@ typedef struct _BP_ANIMATIONPARAMS
DWORD
dwDuration
;
}
BP_ANIMATIONPARAMS
,
*
PBP_ANIMATIONPARAMS
;
HANIMATIONBUFFER
WINAPI
BeginBufferedAnimation
(
HWND
,
HDC
,
const
RECT
*
,
BP_BUFFERFORMAT
,
BP_PAINTPARAMS
*
,
BP_ANIMATIONPARAMS
*
,
HDC
*
,
HDC
*
);
BOOL
WINAPI
BufferedPaintRenderAnimation
(
HWND
,
HDC
);
HRESULT
WINAPI
BufferedPaintStopAllAnimations
(
HWND
);
HRESULT
WINAPI
EndBufferedAnimation
(
HANIMATIONBUFFER
,
BOOL
);
THEMEAPI_
(
HANIMATIONBUFFER
)
BeginBufferedAnimation
(
HWND
,
HDC
,
const
RECT
*
,
BP_BUFFERFORMAT
,
BP_PAINTPARAMS
*
,
BP_ANIMATIONPARAMS
*
,
HDC
*
,
HDC
*
);
THEMEAPI_
(
BOOL
)
BufferedPaintRenderAnimation
(
HWND
,
HDC
);
THEMEAPI
BufferedPaintStopAllAnimations
(
HWND
);
THEMEAPI
EndBufferedAnimation
(
HANIMATIONBUFFER
,
BOOL
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment