2003-12-04 21:55:30 +01:00
|
|
|
/*
|
|
|
|
* Internal uxtheme 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-04 21:55:30 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_UXTHEMEDLL_H
|
|
|
|
#define __WINE_UXTHEMEDLL_H
|
|
|
|
|
2021-10-21 04:06:26 +02:00
|
|
|
#include <wingdi.h>
|
2021-07-20 15:04:14 +02:00
|
|
|
#include <winuser.h>
|
2021-10-21 04:06:26 +02:00
|
|
|
#include <uxtheme.h>
|
|
|
|
#include <msstyles.h>
|
2021-07-20 15:04:14 +02:00
|
|
|
|
2003-12-04 21:55:30 +01:00
|
|
|
typedef HANDLE HTHEMEFILE;
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* EnumThemeProc
|
|
|
|
*
|
|
|
|
* Callback function for EnumThemes.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* TRUE to continue enumeration, FALSE to stop
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpReserved Always 0
|
|
|
|
* pszThemeFileName Full path to theme msstyles file
|
|
|
|
* pszThemeName Display name for theme
|
|
|
|
* pszToolTip Tooltip name for theme
|
|
|
|
* lpReserved2 Always 0
|
|
|
|
* lpData Value passed through lpData from EnumThemes
|
|
|
|
*/
|
|
|
|
typedef BOOL (CALLBACK *EnumThemeProc)(LPVOID lpReserved, LPCWSTR pszThemeFileName,
|
|
|
|
LPCWSTR pszThemeName, LPCWSTR pszToolTip, LPVOID lpReserved2,
|
|
|
|
LPVOID lpData);
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* ParseThemeIniFileProc
|
|
|
|
*
|
|
|
|
* Callback function for ParseThemeIniFile.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* TRUE to continue enumeration, FALSE to stop
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* dwType Entry type
|
|
|
|
* pszParam1 Use defined by entry type
|
|
|
|
* pszParam2 Use defined by entry type
|
|
|
|
* pszParam3 Use defined by entry type
|
|
|
|
* dwParam Use defined by entry type
|
|
|
|
* lpData Value passed through lpData from ParseThemeIniFile
|
|
|
|
*
|
|
|
|
* NOTES
|
2004-01-06 23:08:33 +01:00
|
|
|
* I don't know what the valid entry types are
|
2003-12-04 21:55:30 +01:00
|
|
|
*/
|
|
|
|
typedef BOOL (CALLBACK*ParseThemeIniFileProc)(DWORD dwType, LPWSTR pszParam1,
|
|
|
|
LPWSTR pszParam2, LPWSTR pszParam3,
|
|
|
|
DWORD dwParam, LPVOID lpData);
|
|
|
|
|
2005-08-30 10:54:45 +02:00
|
|
|
/* Structure filled in by EnumThemeColors() and EnumeThemeSizes() with the
|
|
|
|
* various strings for a theme color or size. */
|
|
|
|
typedef struct tagTHEMENAMES
|
|
|
|
{
|
|
|
|
WCHAR szName[MAX_PATH+1];
|
|
|
|
WCHAR szDisplayName[MAX_PATH+1];
|
|
|
|
WCHAR szTooltip[MAX_PATH+1];
|
|
|
|
} THEMENAMES, *PTHEMENAMES;
|
|
|
|
|
2003-12-04 21:55:30 +01:00
|
|
|
/* Declarations for undocumented functions for use internally */
|
2011-05-13 18:23:06 +02:00
|
|
|
DWORD WINAPI QueryThemeServices(void) DECLSPEC_HIDDEN;
|
2003-12-04 21:55:30 +01:00
|
|
|
HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName, LPCWSTR pszColorName,
|
|
|
|
LPCWSTR pszSizeName, HTHEMEFILE *hThemeFile,
|
2011-05-13 18:23:06 +02:00
|
|
|
DWORD unknown) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT WINAPI CloseThemeFile(HTHEMEFILE hThemeFile) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT WINAPI ApplyTheme(HTHEMEFILE hThemeFile, char *unknown, HWND hWnd) DECLSPEC_HIDDEN;
|
2003-12-04 21:55:30 +01:00
|
|
|
HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName, LPWSTR pszColorName,
|
|
|
|
DWORD dwColorNameLen, LPWSTR pszSizeName,
|
2011-05-13 18:23:06 +02:00
|
|
|
DWORD dwSizeNameLen) DECLSPEC_HIDDEN;
|
2003-12-04 21:55:30 +01:00
|
|
|
HRESULT WINAPI EnumThemes(LPCWSTR pszThemePath, EnumThemeProc callback,
|
2011-05-13 18:23:06 +02:00
|
|
|
LPVOID lpData) DECLSPEC_HIDDEN;
|
2003-12-04 21:55:30 +01:00
|
|
|
HRESULT WINAPI EnumThemeColors(LPWSTR pszThemeFileName, LPWSTR pszSizeName,
|
2011-05-13 18:23:06 +02:00
|
|
|
DWORD dwColorNum, PTHEMENAMES pszColorNames) DECLSPEC_HIDDEN;
|
2003-12-04 21:55:30 +01:00
|
|
|
HRESULT WINAPI EnumThemeSizes(LPWSTR pszThemeFileName, LPWSTR pszColorName,
|
2011-05-13 18:23:06 +02:00
|
|
|
DWORD dwSizeNum, PTHEMENAMES pszColorNames) DECLSPEC_HIDDEN;
|
2003-12-04 21:55:30 +01:00
|
|
|
HRESULT WINAPI ParseThemeIniFile(LPCWSTR pszIniFileName, LPWSTR pszUnknown,
|
2011-05-13 18:23:06 +02:00
|
|
|
ParseThemeIniFileProc callback, LPVOID lpData) DECLSPEC_HIDDEN;
|
2021-07-20 15:04:14 +02:00
|
|
|
BOOL WINAPI ThemeHooksInstall(void) DECLSPEC_HIDDEN;
|
|
|
|
BOOL WINAPI ThemeHooksRemove(void) DECLSPEC_HIDDEN;
|
2003-12-04 21:55:30 +01:00
|
|
|
|
2011-05-13 18:23:06 +02:00
|
|
|
extern void UXTHEME_InitSystem(HINSTANCE hInst) DECLSPEC_HIDDEN;
|
2021-10-21 04:06:26 +02:00
|
|
|
extern HRESULT UXTHEME_SetActiveTheme(PTHEME_FILE tf) DECLSPEC_HIDDEN;
|
2021-07-05 14:33:49 +02:00
|
|
|
extern void UXTHEME_UninitSystem(void) DECLSPEC_HIDDEN;
|
2003-12-04 21:55:30 +01:00
|
|
|
|
2021-07-20 15:04:14 +02:00
|
|
|
extern struct user_api_hook user_api DECLSPEC_HIDDEN;
|
2021-07-20 15:04:24 +02:00
|
|
|
LRESULT WINAPI UXTHEME_DefDlgProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam, BOOL unicode) DECLSPEC_HIDDEN;
|
2021-07-20 15:04:33 +02:00
|
|
|
void WINAPI UXTHEME_ScrollBarDraw(HWND hwnd, HDC dc, INT bar, enum SCROLL_HITTEST hit_test,
|
|
|
|
const struct SCROLL_TRACKING_INFO *tracking_info,
|
|
|
|
BOOL draw_arrows, BOOL draw_interior, RECT *rect, INT arrowsize,
|
|
|
|
INT thumbpos, INT thumbsize, BOOL vertical) DECLSPEC_HIDDEN;
|
2021-07-20 15:04:14 +02:00
|
|
|
LRESULT WINAPI UXTHEME_ScrollbarWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam,
|
|
|
|
BOOL unicode) DECLSPEC_HIDDEN;
|
|
|
|
|
2005-08-29 23:47:26 +02:00
|
|
|
/* No alpha blending */
|
|
|
|
#define ALPHABLEND_NONE 0
|
|
|
|
/* "Cheap" binary alpha blending - but possibly faster */
|
|
|
|
#define ALPHABLEND_BINARY 1
|
|
|
|
/* Full alpha blending */
|
|
|
|
#define ALPHABLEND_FULL 2
|
|
|
|
|
|
|
|
#endif /* __WINE_UXTHEMEDLL_H */
|