* include/uxtheme.h: Include <commctrl.h>

This commit is contained in:
Danny Smith 2004-03-02 23:01:16 +00:00
parent 7cdd029300
commit dd890ee106
2 changed files with 127 additions and 121 deletions

View File

@ -1,6 +1,10 @@
2004-03-02 Danny Smith <dannysmith@users.sourceforge.net> 2004-03-02 Danny Smith <dannysmith@users.sourceforge.net>
* basetyps.h (GUID_SECT): Define to nothimg for GCC >= 2.95. * include/uxtheme.h: Include <commctrl.h>
2004-03-02 Danny Smith <dannysmith@users.sourceforge.net>
* include/basetyps.h (GUID_SECT): Define to nothimg for GCC >= 2.95.
2004-03-02 Martin Fuchs <martin-fuchs@gmx.net> 2004-03-02 Martin Fuchs <martin-fuchs@gmx.net>

View File

@ -1,120 +1,122 @@
#ifndef _UXTHEME_H #ifndef _UXTHEME_H
#define _UXTHEME_H #define _UXTHEME_H
#if __GNUC__ >= 3 #if __GNUC__ >= 3
#pragma GCC system_header #pragma GCC system_header
#endif #endif
#ifdef __cplusplus #include <commctrl.h>
extern "C" {
#endif #ifdef __cplusplus
extern "C" {
#if (_WIN32_WINNT >= 0x0501) #endif
#define DTBG_CLIPRECT 0x00000001
#define DTBG_DRAWSOLID 0x00000002 #if (_WIN32_WINNT >= 0x0501)
#define DTBG_OMITBORDER 0x00000004 #define DTBG_CLIPRECT 0x00000001
#define DTBG_OMITCONTENT 0x00000008 #define DTBG_DRAWSOLID 0x00000002
#define DTBG_COMPUTINGREGION 0x00000010 #define DTBG_OMITBORDER 0x00000004
#define DTBG_MIRRORDC 0x00000020 #define DTBG_OMITCONTENT 0x00000008
#define DTT_GRAYED 0x00000001 #define DTBG_COMPUTINGREGION 0x00000010
#define ETDT_DISABLE 0x00000001 #define DTBG_MIRRORDC 0x00000020
#define ETDT_ENABLE 0x00000002 #define DTT_GRAYED 0x00000001
#define ETDT_USETABTEXTURE 0x00000004 #define ETDT_DISABLE 0x00000001
#define ETDT_ENABLETAB (ETDT_ENABLE|ETDT_USETABTEXTURE) #define ETDT_ENABLE 0x00000002
#define STAP_ALLOW_NONCLIENT 0x00000001 #define ETDT_USETABTEXTURE 0x00000004
#define STAP_ALLOW_CONTROLS 0x00000002 #define ETDT_ENABLETAB (ETDT_ENABLE|ETDT_USETABTEXTURE)
#define STAP_ALLOW_WEBCONTENT 0x00000004 #define STAP_ALLOW_NONCLIENT 0x00000001
#define HTTB_BACKGROUNDSEG 0x0000 #define STAP_ALLOW_CONTROLS 0x00000002
#define HTTB_FIXEDBORDER 0x0002 #define STAP_ALLOW_WEBCONTENT 0x00000004
#define HTTB_CAPTION 0x0004 #define HTTB_BACKGROUNDSEG 0x0000
#define HTTB_RESIZINGBORDER_LEFT 0x0010 #define HTTB_FIXEDBORDER 0x0002
#define HTTB_RESIZINGBORDER_TOP 0x0020 #define HTTB_CAPTION 0x0004
#define HTTB_RESIZINGBORDER_RIGHT 0x0040 #define HTTB_RESIZINGBORDER_LEFT 0x0010
#define HTTB_RESIZINGBORDER_BOTTOM 0x0080 #define HTTB_RESIZINGBORDER_TOP 0x0020
#define HTTB_RESIZINGBORDER (HTTB_RESIZINGBORDER_LEFT|HTTB_RESIZINGBORDER_TOP|HTTB_RESIZINGBORDER_RIGHT|HTTB_RESIZINGBORDER_BOTTOM) #define HTTB_RESIZINGBORDER_RIGHT 0x0040
#define HTTB_SIZINGTEMPLATE 0x0100 #define HTTB_RESIZINGBORDER_BOTTOM 0x0080
#define HTTB_SYSTEMSIZINGMARGINS 0x0200 #define HTTB_RESIZINGBORDER (HTTB_RESIZINGBORDER_LEFT|HTTB_RESIZINGBORDER_TOP|HTTB_RESIZINGBORDER_RIGHT|HTTB_RESIZINGBORDER_BOTTOM)
#define HTTB_SIZINGTEMPLATE 0x0100
typedef enum PROPERTYORIGIN { #define HTTB_SYSTEMSIZINGMARGINS 0x0200
PO_STATE = 0,
PO_PART = 1, typedef enum PROPERTYORIGIN {
PO_CLASS = 2, PO_STATE = 0,
PO_GLOBAL = 3, PO_PART = 1,
PO_NOTFOUND = 4 PO_CLASS = 2,
} PROPERTYORIGIN; PO_GLOBAL = 3,
typedef enum THEMESIZE { PO_NOTFOUND = 4
TS_MIN, } PROPERTYORIGIN;
TS_TRUE, typedef enum THEMESIZE {
TS_DRAW TS_MIN,
} THEME_SIZE; TS_TRUE,
typedef struct _DTBGOPTS { TS_DRAW
DWORD dwSize; } THEME_SIZE;
DWORD dwFlags; typedef struct _DTBGOPTS {
RECT rcClip; DWORD dwSize;
} DTBGOPTS, *PDTBGOPTS; DWORD dwFlags;
#define MAX_INTLIST_COUNT 10 RECT rcClip;
typedef struct _INTLIST { } DTBGOPTS, *PDTBGOPTS;
int iValueCount; #define MAX_INTLIST_COUNT 10
int iValues[MAX_INTLIST_COUNT]; typedef struct _INTLIST {
} INTLIST, *PINTLIST; int iValueCount;
typedef struct _MARGINS { int iValues[MAX_INTLIST_COUNT];
int cxLeftWidth; } INTLIST, *PINTLIST;
int cxRightWidth; typedef struct _MARGINS {
int cyTopHeight; int cxLeftWidth;
int cyBottomHeight; int cxRightWidth;
} MARGINS, *PMARGINS; int cyTopHeight;
typedef HANDLE HTHEME; int cyBottomHeight;
} MARGINS, *PMARGINS;
HRESULT WINAPI CloseThemeData(HTHEME); typedef HANDLE HTHEME;
HRESULT WINAPI DrawThemeBackground(HTHEME,HDC,int,int,const RECT*,const RECT*);
HRESULT WINAPI DrawThemeBackgroundEx(HTHEME,HDC,int,int,const RECT*,const DTBGOPTS*); HRESULT WINAPI CloseThemeData(HTHEME);
HRESULT WINAPI DrawThemeEdge(HTHEME,HDC,int,int,const RECT*,UINT,UINT,RECT*); HRESULT WINAPI DrawThemeBackground(HTHEME,HDC,int,int,const RECT*,const RECT*);
HRESULT WINAPI DrawThemeIcon(HTHEME,HDC,int,int,const RECT*,HIMAGELIST,int); HRESULT WINAPI DrawThemeBackgroundEx(HTHEME,HDC,int,int,const RECT*,const DTBGOPTS*);
HRESULT WINAPI DrawThemeParentBackground(HWND,HDC,RECT*); HRESULT WINAPI DrawThemeEdge(HTHEME,HDC,int,int,const RECT*,UINT,UINT,RECT*);
HRESULT WINAPI DrawThemeText(HTHEME,HDC,int,int,LPCWSTR,int,DWORD,DWORD,const RECT*); HRESULT WINAPI DrawThemeIcon(HTHEME,HDC,int,int,const RECT*,HIMAGELIST,int);
HRESULT WINAPI EnableThemeDialogTexture(HWND,DWORD); HRESULT WINAPI DrawThemeParentBackground(HWND,HDC,RECT*);
HRESULT WINAPI EnableTheming(BOOL); HRESULT WINAPI DrawThemeText(HTHEME,HDC,int,int,LPCWSTR,int,DWORD,DWORD,const RECT*);
HRESULT WINAPI GetCurrentThemeName(LPWSTR,int,LPWSTR,int,LPWSTR,int); HRESULT WINAPI EnableThemeDialogTexture(HWND,DWORD);
DWORD WINAPI GetThemeAppProperties(); HRESULT WINAPI EnableTheming(BOOL);
HRESULT WINAPI GetThemeBackgroundContentRect(HTHEME,HDC,int,int,const RECT*,RECT*); HRESULT WINAPI GetCurrentThemeName(LPWSTR,int,LPWSTR,int,LPWSTR,int);
HRESULT WINAPI GetThemeBackgroundExtent(HTHEME,HDC,int,int,const RECT*,RECT*); DWORD WINAPI GetThemeAppProperties();
HRESULT WINAPI GetThemeBackgroundRegion(HTHEME,HDC,int,int,const RECT*,HRGN*); HRESULT WINAPI GetThemeBackgroundContentRect(HTHEME,HDC,int,int,const RECT*,RECT*);
HRESULT WINAPI GetThemeBool(HTHEME,int,int,int,BOOL*); HRESULT WINAPI GetThemeBackgroundExtent(HTHEME,HDC,int,int,const RECT*,RECT*);
HRESULT WINAPI GetThemeColor(HTHEME,int,int,int,COLORREF*); HRESULT WINAPI GetThemeBackgroundRegion(HTHEME,HDC,int,int,const RECT*,HRGN*);
HRESULT WINAPI GetThemeDocumentationProperty(LPCWSTR,LPCWSTR,LPWSTR,int); HRESULT WINAPI GetThemeBool(HTHEME,int,int,int,BOOL*);
HRESULT WINAPI GetThemeEnumValue(HTHEME,int,int,int,int*); HRESULT WINAPI GetThemeColor(HTHEME,int,int,int,COLORREF*);
HRESULT WINAPI GetThemeFilename(HTHEME,int,int,int,LPWSTR,int); HRESULT WINAPI GetThemeDocumentationProperty(LPCWSTR,LPCWSTR,LPWSTR,int);
HRESULT WINAPI GetThemeFont(HTHEME,HDC,int,int,int,LOGFONT*); HRESULT WINAPI GetThemeEnumValue(HTHEME,int,int,int,int*);
HRESULT WINAPI GetThemeInt(HTHEME,int,int,int,int*); HRESULT WINAPI GetThemeFilename(HTHEME,int,int,int,LPWSTR,int);
HRESULT WINAPI GetThemeIntList(HTHEME,int,int,int,INTLIST*); HRESULT WINAPI GetThemeFont(HTHEME,HDC,int,int,int,LOGFONT*);
HRESULT WINAPI GetThemeMargins(HTHEME,HDC,int,int,int,RECT*,MARGINS*); HRESULT WINAPI GetThemeInt(HTHEME,int,int,int,int*);
HRESULT WINAPI GetThemeMetric(HTHEME,HDC,int,int,int,int*); HRESULT WINAPI GetThemeIntList(HTHEME,int,int,int,INTLIST*);
HRESULT WINAPI GetThemePartSize(HTHEME,HDC,int,int,RECT*,THEME_SIZE,SIZE*); HRESULT WINAPI GetThemeMargins(HTHEME,HDC,int,int,int,RECT*,MARGINS*);
HRESULT WINAPI GetThemePosition(HTHEME,int,int,int,POINT*); HRESULT WINAPI GetThemeMetric(HTHEME,HDC,int,int,int,int*);
HRESULT WINAPI GetThemePropertyOrigin(HTHEME,int,int,int,PROPERTYORIGIN*); HRESULT WINAPI GetThemePartSize(HTHEME,HDC,int,int,RECT*,THEME_SIZE,SIZE*);
HRESULT WINAPI GetThemeRect(HTHEME,int,int,int,RECT*); HRESULT WINAPI GetThemePosition(HTHEME,int,int,int,POINT*);
HRESULT WINAPI GetThemeString(HTHEME,int,int,int,LPWSTR,int); HRESULT WINAPI GetThemePropertyOrigin(HTHEME,int,int,int,PROPERTYORIGIN*);
BOOL WINAPI GetThemeSysBool(HTHEME,int); HRESULT WINAPI GetThemeRect(HTHEME,int,int,int,RECT*);
COLORREF WINAPI GetThemeSysColor(HTHEME,int); HRESULT WINAPI GetThemeString(HTHEME,int,int,int,LPWSTR,int);
HBRUSH WINAPI GetThemeSysColorBrush(HTHEME,int); BOOL WINAPI GetThemeSysBool(HTHEME,int);
HRESULT WINAPI GetThemeSysFont(HTHEME,int,LOGFONT*); COLORREF WINAPI GetThemeSysColor(HTHEME,int);
HRESULT WINAPI GetThemeSysInt(HTHEME,int,int*); HBRUSH WINAPI GetThemeSysColorBrush(HTHEME,int);
int WINAPI GetThemeSysSize(HTHEME,int); HRESULT WINAPI GetThemeSysFont(HTHEME,int,LOGFONT*);
HRESULT WINAPI GetThemeSysString(HTHEME,int,LPWSTR,int); HRESULT WINAPI GetThemeSysInt(HTHEME,int,int*);
HRESULT WINAPI GetThemeTextExtent(HTHEME,HDC,int,int,LPCWSTR,int,DWORD,const RECT*,RECT*); int WINAPI GetThemeSysSize(HTHEME,int);
HRESULT WINAPI GetThemeTextMetrics(HTHEME,HDC,int,int,TEXTMETRIC*); HRESULT WINAPI GetThemeSysString(HTHEME,int,LPWSTR,int);
HTHEME WINAPI GetWindowTheme(HWND); HRESULT WINAPI GetThemeTextExtent(HTHEME,HDC,int,int,LPCWSTR,int,DWORD,const RECT*,RECT*);
HRESULT WINAPI HitTestThemeBackground(HTHEME,HDC,int,int,DWORD,const RECT*,HRGN,POINT,WORD*); HRESULT WINAPI GetThemeTextMetrics(HTHEME,HDC,int,int,TEXTMETRIC*);
BOOL WINAPI IsAppThemed(); HTHEME WINAPI GetWindowTheme(HWND);
BOOL WINAPI IsThemeActive(); HRESULT WINAPI HitTestThemeBackground(HTHEME,HDC,int,int,DWORD,const RECT*,HRGN,POINT,WORD*);
BOOL WINAPI IsThemeBackgroundPartiallyTransparent(HTHEME,int,int); BOOL WINAPI IsAppThemed();
BOOL WINAPI IsThemeDialogTextureEnabled(HWND); BOOL WINAPI IsThemeActive();
BOOL WINAPI IsThemePartDefined(HTHEME,int,int); BOOL WINAPI IsThemeBackgroundPartiallyTransparent(HTHEME,int,int);
HTHEME WINAPI OpenThemeData(HWND,LPCWSTR); BOOL WINAPI IsThemeDialogTextureEnabled(HWND);
void WINAPI SetThemeAppProperties(DWORD); BOOL WINAPI IsThemePartDefined(HTHEME,int,int);
HRESULT WINAPI SetWindowTheme(HWND,LPCWSTR,LPCWSTR); HTHEME WINAPI OpenThemeData(HWND,LPCWSTR);
#endif void WINAPI SetThemeAppProperties(DWORD);
HRESULT WINAPI SetWindowTheme(HWND,LPCWSTR,LPCWSTR);
#ifdef __cplusplus #endif
}
#endif #ifdef __cplusplus
#endif }
#endif
#endif