~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/dlls/uxtheme/msstyles.h

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /*
  2  * Internal msstyles related defines & declarations
  3  *
  4  * Copyright (C) 2003 Kevin Koltzau
  5  *
  6  * This library is free software; you can redistribute it and/or
  7  * modify it under the terms of the GNU Lesser General Public
  8  * License as published by the Free Software Foundation; either
  9  * version 2.1 of the License, or (at your option) any later version.
 10  *
 11  * This library is distributed in the hope that it will be useful,
 12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 14  * Lesser General Public License for more details.
 15  *
 16  * You should have received a copy of the GNU Lesser General Public
 17  * License along with this library; if not, write to the Free Software
 18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 19  */
 20 
 21 #ifndef __WINE_MSSTYLES_H
 22 #define __WINE_MSSTYLES_H
 23 
 24 #define TMT_ENUM 200
 25 
 26 #define MAX_THEME_APP_NAME 60
 27 #define MAX_THEME_CLASS_NAME 60
 28 #define MAX_THEME_VALUE_NAME 60
 29 
 30 typedef struct _THEME_PROPERTY {
 31     int iPrimitiveType;
 32     int iPropertyId;
 33     PROPERTYORIGIN origin;
 34 
 35     LPCWSTR lpValue;
 36     DWORD dwValueLen;
 37 
 38     struct _THEME_PROPERTY *next;
 39 } THEME_PROPERTY, *PTHEME_PROPERTY;
 40 
 41 typedef struct _THEME_PARTSTATE {
 42     int iPartId;
 43     int iStateId;
 44     PTHEME_PROPERTY properties;
 45 
 46     struct _THEME_PARTSTATE *next;
 47 } THEME_PARTSTATE, *PTHEME_PARTSTATE;
 48 
 49 struct _THEME_FILE;
 50 
 51 typedef struct _THEME_CLASS {
 52     HMODULE hTheme;
 53     struct _THEME_FILE* tf;
 54     WCHAR szAppName[MAX_THEME_APP_NAME];
 55     WCHAR szClassName[MAX_THEME_CLASS_NAME];
 56     PTHEME_PARTSTATE partstate;
 57     struct _THEME_CLASS *overrides;
 58 
 59     struct _THEME_CLASS *next;
 60 } THEME_CLASS, *PTHEME_CLASS;
 61 
 62 typedef struct _THEME_IMAGE {
 63     WCHAR name[MAX_PATH];
 64     HBITMAP image;
 65     BOOL hasAlpha;
 66     
 67     struct _THEME_IMAGE *next;
 68 } THEME_IMAGE, *PTHEME_IMAGE;
 69 
 70 typedef struct _THEME_FILE {
 71     DWORD dwRefCount;
 72     HMODULE hTheme;
 73     WCHAR szThemeFile[MAX_PATH];
 74     LPWSTR pszAvailColors;
 75     LPWSTR pszAvailSizes;
 76 
 77     LPWSTR pszSelectedColor;
 78     LPWSTR pszSelectedSize;
 79 
 80     PTHEME_CLASS classes;
 81     PTHEME_PROPERTY metrics;
 82     PTHEME_IMAGE images;
 83 } THEME_FILE, *PTHEME_FILE;
 84 
 85 typedef struct _UXINI_FILE *PUXINI_FILE;
 86 
 87 HRESULT MSSTYLES_OpenThemeFile(LPCWSTR lpThemeFile, LPCWSTR pszColorName, LPCWSTR pszSizeName, PTHEME_FILE *tf);
 88 void MSSTYLES_CloseThemeFile(PTHEME_FILE tf);
 89 HRESULT MSSTYLES_SetActiveTheme(PTHEME_FILE tf, BOOL setMetrics);
 90 PTHEME_CLASS MSSTYLES_OpenThemeClass(LPCWSTR pszAppName, LPCWSTR pszClassList);
 91 HRESULT MSSTYLES_CloseThemeClass(PTHEME_CLASS tc);
 92 BOOL MSSTYLES_LookupProperty(LPCWSTR pszPropertyName, int *dwPrimitive, int *dwId);
 93 BOOL MSSTYLES_LookupEnum(LPCWSTR pszValueName, int dwEnum, int *dwValue);
 94 BOOL MSSTYLES_LookupPartState(LPCWSTR pszClass, LPCWSTR pszPart, LPCWSTR pszState, int *iPartId, int *iStateId);
 95 PUXINI_FILE MSSTYLES_GetThemeIni(PTHEME_FILE tf);
 96 PTHEME_PARTSTATE MSSTYLES_FindPartState(PTHEME_CLASS tc, int iPartId, int iStateId, PTHEME_CLASS *tcNext);
 97 PTHEME_PROPERTY MSSTYLES_FindProperty(PTHEME_CLASS tc, int iPartId, int iStateId, int iPropertyPrimitive, int iPropertyId);
 98 PTHEME_PROPERTY MSSTYLES_FindMetric(int iPropertyPrimitive, int iPropertyId);
 99 HBITMAP MSSTYLES_LoadBitmap(PTHEME_CLASS tc, LPCWSTR lpFilename, BOOL* hasAlpha);
100 
101 HRESULT MSSTYLES_GetPropertyBool(PTHEME_PROPERTY tp, BOOL *pfVal);
102 HRESULT MSSTYLES_GetPropertyColor(PTHEME_PROPERTY tp, COLORREF *pColor);
103 HRESULT MSSTYLES_GetPropertyFont(PTHEME_PROPERTY tp, HDC hdc, LOGFONTW *pFont);
104 HRESULT MSSTYLES_GetPropertyInt(PTHEME_PROPERTY tp, int *piVal);
105 HRESULT MSSTYLES_GetPropertyIntList(PTHEME_PROPERTY tp, INTLIST *pIntList);
106 HRESULT MSSTYLES_GetPropertyPosition(PTHEME_PROPERTY tp, POINT *pPoint);
107 HRESULT MSSTYLES_GetPropertyString(PTHEME_PROPERTY tp, LPWSTR pszBuff, int cchMaxBuffChars);
108 HRESULT MSSTYLES_GetPropertyRect(PTHEME_PROPERTY tp, RECT *pRect);
109 HRESULT MSSTYLES_GetPropertyMargins(PTHEME_PROPERTY tp, RECT *prc, MARGINS *pMargins);
110 
111 PUXINI_FILE UXINI_LoadINI(HMODULE hTheme, LPCWSTR lpName);
112 void UXINI_CloseINI(PUXINI_FILE uf);
113 void UXINI_ResetINI(PUXINI_FILE uf);
114 LPCWSTR UXINI_GetNextSection(PUXINI_FILE uf, DWORD *dwLen);
115 BOOL UXINI_FindSection(PUXINI_FILE uf, LPCWSTR lpName);
116 LPCWSTR UXINI_GetNextValue(PUXINI_FILE uf, DWORD *dwNameLen, LPCWSTR *lpValue, DWORD *dwValueLen);
117 BOOL UXINI_FindValue(PUXINI_FILE uf, LPCWSTR lpName, LPCWSTR *lpValue, DWORD *dwValueLen);
118 
119 #endif
120 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.