2003-12-08 23:45:26 +01:00
|
|
|
/*
|
|
|
|
* Internal msstyles related defines & declarations
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Kevin Koltzau
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-12-08 23:45:26 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_MSSTYLES_H
|
|
|
|
#define __WINE_MSSTYLES_H
|
|
|
|
|
2004-01-16 22:25:25 +01:00
|
|
|
#define TMT_ENUM 200
|
|
|
|
|
2004-01-19 22:52:09 +01:00
|
|
|
#define MAX_THEME_APP_NAME 60
|
|
|
|
#define MAX_THEME_CLASS_NAME 60
|
2004-01-23 05:34:02 +01:00
|
|
|
#define MAX_THEME_VALUE_NAME 60
|
|
|
|
|
|
|
|
typedef struct _THEME_PROPERTY {
|
|
|
|
int iPrimitiveType;
|
|
|
|
int iPropertyId;
|
|
|
|
PROPERTYORIGIN origin;
|
|
|
|
|
|
|
|
LPCWSTR lpValue;
|
|
|
|
DWORD dwValueLen;
|
|
|
|
|
|
|
|
struct _THEME_PROPERTY *next;
|
|
|
|
} THEME_PROPERTY, *PTHEME_PROPERTY;
|
2004-01-19 22:52:09 +01:00
|
|
|
|
|
|
|
typedef struct _THEME_PARTSTATE {
|
|
|
|
int iPartId;
|
|
|
|
int iStateId;
|
2004-01-23 05:34:02 +01:00
|
|
|
PTHEME_PROPERTY properties;
|
2004-01-19 22:52:09 +01:00
|
|
|
|
|
|
|
struct _THEME_PARTSTATE *next;
|
|
|
|
} THEME_PARTSTATE, *PTHEME_PARTSTATE;
|
|
|
|
|
2005-07-05 13:45:57 +02:00
|
|
|
struct _THEME_FILE;
|
|
|
|
|
2004-01-19 22:52:09 +01:00
|
|
|
typedef struct _THEME_CLASS {
|
2004-01-23 05:34:02 +01:00
|
|
|
HMODULE hTheme;
|
2005-07-05 13:45:57 +02:00
|
|
|
struct _THEME_FILE* tf;
|
2004-01-19 22:52:09 +01:00
|
|
|
WCHAR szAppName[MAX_THEME_APP_NAME];
|
|
|
|
WCHAR szClassName[MAX_THEME_CLASS_NAME];
|
2021-09-01 08:37:38 +02:00
|
|
|
UINT dpi;
|
2004-01-19 22:52:09 +01:00
|
|
|
PTHEME_PARTSTATE partstate;
|
|
|
|
struct _THEME_CLASS *overrides;
|
|
|
|
|
|
|
|
struct _THEME_CLASS *next;
|
|
|
|
} THEME_CLASS, *PTHEME_CLASS;
|
|
|
|
|
2005-08-29 11:30:17 +02:00
|
|
|
typedef struct _THEME_IMAGE {
|
|
|
|
WCHAR name[MAX_PATH];
|
|
|
|
HBITMAP image;
|
|
|
|
BOOL hasAlpha;
|
|
|
|
|
|
|
|
struct _THEME_IMAGE *next;
|
|
|
|
} THEME_IMAGE, *PTHEME_IMAGE;
|
|
|
|
|
2003-12-08 23:45:26 +01:00
|
|
|
typedef struct _THEME_FILE {
|
2004-01-16 22:25:25 +01:00
|
|
|
DWORD dwRefCount;
|
2003-12-08 23:45:26 +01:00
|
|
|
HMODULE hTheme;
|
2004-02-17 21:22:27 +01:00
|
|
|
WCHAR szThemeFile[MAX_PATH];
|
2003-12-08 23:45:26 +01:00
|
|
|
LPWSTR pszAvailColors;
|
|
|
|
LPWSTR pszAvailSizes;
|
|
|
|
|
|
|
|
LPWSTR pszSelectedColor;
|
|
|
|
LPWSTR pszSelectedSize;
|
|
|
|
|
2004-01-19 22:52:09 +01:00
|
|
|
PTHEME_CLASS classes;
|
2004-02-20 06:12:21 +01:00
|
|
|
PTHEME_PROPERTY metrics;
|
2005-08-29 11:30:17 +02:00
|
|
|
PTHEME_IMAGE images;
|
2004-01-19 22:52:09 +01:00
|
|
|
} THEME_FILE, *PTHEME_FILE;
|
2004-01-16 22:25:25 +01:00
|
|
|
|
2007-04-18 08:30:13 +02:00
|
|
|
typedef struct _UXINI_FILE *PUXINI_FILE;
|
2004-01-16 22:25:25 +01:00
|
|
|
|
2011-05-13 18:23:06 +02:00
|
|
|
HRESULT MSSTYLES_OpenThemeFile(LPCWSTR lpThemeFile, LPCWSTR pszColorName, LPCWSTR pszSizeName, PTHEME_FILE *tf) DECLSPEC_HIDDEN;
|
|
|
|
void MSSTYLES_CloseThemeFile(PTHEME_FILE tf) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT MSSTYLES_SetActiveTheme(PTHEME_FILE tf, BOOL setMetrics) DECLSPEC_HIDDEN;
|
2021-09-01 08:37:38 +02:00
|
|
|
PTHEME_CLASS MSSTYLES_OpenThemeClass(LPCWSTR pszAppName, LPCWSTR pszClassList, UINT dpi) DECLSPEC_HIDDEN;
|
2011-05-13 18:23:06 +02:00
|
|
|
HRESULT MSSTYLES_CloseThemeClass(PTHEME_CLASS tc) DECLSPEC_HIDDEN;
|
|
|
|
BOOL MSSTYLES_LookupProperty(LPCWSTR pszPropertyName, int *dwPrimitive, int *dwId) DECLSPEC_HIDDEN;
|
|
|
|
BOOL MSSTYLES_LookupEnum(LPCWSTR pszValueName, int dwEnum, int *dwValue) DECLSPEC_HIDDEN;
|
|
|
|
BOOL MSSTYLES_LookupPartState(LPCWSTR pszClass, LPCWSTR pszPart, LPCWSTR pszState, int *iPartId, int *iStateId) DECLSPEC_HIDDEN;
|
|
|
|
PUXINI_FILE MSSTYLES_GetThemeIni(PTHEME_FILE tf) DECLSPEC_HIDDEN;
|
2021-09-01 08:38:10 +02:00
|
|
|
UINT MSSTYLES_GetThemeDPI(PTHEME_CLASS tc) DECLSPEC_HIDDEN;
|
2022-03-01 08:06:38 +01:00
|
|
|
PTHEME_PARTSTATE MSSTYLES_FindPart(PTHEME_CLASS tc, int iPartId) DECLSPEC_HIDDEN;
|
2011-05-13 18:23:06 +02:00
|
|
|
PTHEME_PARTSTATE MSSTYLES_FindPartState(PTHEME_CLASS tc, int iPartId, int iStateId, PTHEME_CLASS *tcNext) DECLSPEC_HIDDEN;
|
|
|
|
PTHEME_PROPERTY MSSTYLES_FindProperty(PTHEME_CLASS tc, int iPartId, int iStateId, int iPropertyPrimitive, int iPropertyId) DECLSPEC_HIDDEN;
|
|
|
|
PTHEME_PROPERTY MSSTYLES_FindMetric(int iPropertyPrimitive, int iPropertyId) DECLSPEC_HIDDEN;
|
|
|
|
HBITMAP MSSTYLES_LoadBitmap(PTHEME_CLASS tc, LPCWSTR lpFilename, BOOL* hasAlpha) DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
HRESULT MSSTYLES_GetPropertyBool(PTHEME_PROPERTY tp, BOOL *pfVal) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT MSSTYLES_GetPropertyColor(PTHEME_PROPERTY tp, COLORREF *pColor) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT MSSTYLES_GetPropertyFont(PTHEME_PROPERTY tp, HDC hdc, LOGFONTW *pFont) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT MSSTYLES_GetPropertyInt(PTHEME_PROPERTY tp, int *piVal) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT MSSTYLES_GetPropertyIntList(PTHEME_PROPERTY tp, INTLIST *pIntList) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT MSSTYLES_GetPropertyPosition(PTHEME_PROPERTY tp, POINT *pPoint) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT MSSTYLES_GetPropertyString(PTHEME_PROPERTY tp, LPWSTR pszBuff, int cchMaxBuffChars) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT MSSTYLES_GetPropertyRect(PTHEME_PROPERTY tp, RECT *pRect) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT MSSTYLES_GetPropertyMargins(PTHEME_PROPERTY tp, RECT *prc, MARGINS *pMargins) DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
PUXINI_FILE UXINI_LoadINI(HMODULE hTheme, LPCWSTR lpName) DECLSPEC_HIDDEN;
|
|
|
|
void UXINI_CloseINI(PUXINI_FILE uf) DECLSPEC_HIDDEN;
|
|
|
|
LPCWSTR UXINI_GetNextSection(PUXINI_FILE uf, DWORD *dwLen) DECLSPEC_HIDDEN;
|
|
|
|
BOOL UXINI_FindSection(PUXINI_FILE uf, LPCWSTR lpName) DECLSPEC_HIDDEN;
|
|
|
|
LPCWSTR UXINI_GetNextValue(PUXINI_FILE uf, DWORD *dwNameLen, LPCWSTR *lpValue, DWORD *dwValueLen) DECLSPEC_HIDDEN;
|
|
|
|
BOOL UXINI_FindValue(PUXINI_FILE uf, LPCWSTR lpName, LPCWSTR *lpValue, DWORD *dwValueLen) DECLSPEC_HIDDEN;
|
2003-12-08 23:45:26 +01:00
|
|
|
|
|
|
|
#endif
|