ReactOS 0.4.16-dev-306-g647d351
|
#include <stdarg.h>
#include "resource.h"
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>
#include <winnls.h>
#include <windowsx.h>
#include <undocuser.h>
#include <undocgdi.h>
#include <uxtheme.h>
#include <uxundoc.h>
#include <vfwmsgs.h>
#include <tmschema.h>
#include <ndk/ntndk.h>
#include <ndk/rtltypes.h>
#include <wine/debug.h>
Go to the source code of this file.
Classes | |
struct | _THEME_PROPERTY |
struct | _THEME_PARTSTATE |
struct | _THEME_CLASS |
struct | _THEME_IMAGE |
struct | _THEME_FILE |
struct | _UXTHEME_HANDLE |
struct | _WND_DATA |
struct | _DRAW_CONTEXT |
Macros | |
#define | WIN32_NO_STATUS |
#define | _INC_WINDOWS |
#define | COM_NO_WINDOWS_H |
#define | NTOS_MODE_USER |
#define | TMT_ENUM 200 |
#define | MAX_THEME_APP_NAME 60 |
#define | MAX_THEME_CLASS_NAME 60 |
#define | MAX_THEME_VALUE_NAME 60 |
#define | HT_ISBUTTON(ht) ((ht) == HTMINBUTTON || (ht) == HTMAXBUTTON || (ht) == HTCLOSE || (ht) == HTHELP) |
#define | HASSIZEGRIP(Style, ExStyle, ParentStyle, WindowRect, ParentClientRect) |
#define | HAS_MENU(hwnd, style) ((((style) & (WS_CHILD | WS_POPUP)) != WS_CHILD) && GetMenu(hwnd)) |
#define | BUTTON_GAP_SIZE 2 |
#define | MENU_BAR_ITEMS_SPACE (12) |
#define | SCROLL_TIMER 0 /* Scroll timer id */ |
#define | SCROLL_ARROW_THUMB_OVERLAP 0 |
#define | SCROLL_FIRST_DELAY 200 |
#define | SCROLL_REPEAT_DELAY 50 |
#define | SCROLL_MIN_THUMB 6 |
#define | SCROLL_MIN_RECT 4 |
#define | ALPHABLEND_NONE 0 |
#define | ALPHABLEND_BINARY 1 |
#define | ALPHABLEND_FULL 2 |
Typedefs | |
typedef struct _THEME_PROPERTY | THEME_PROPERTY |
typedef struct _THEME_PROPERTY * | PTHEME_PROPERTY |
typedef struct _THEME_PARTSTATE | THEME_PARTSTATE |
typedef struct _THEME_PARTSTATE * | PTHEME_PARTSTATE |
typedef struct _THEME_CLASS | THEME_CLASS |
typedef struct _THEME_CLASS * | PTHEME_CLASS |
typedef struct _THEME_IMAGE | THEME_IMAGE |
typedef struct _THEME_IMAGE * | PTHEME_IMAGE |
typedef struct _THEME_FILE | THEME_FILE |
typedef struct _THEME_FILE * | PTHEME_FILE |
typedef struct _UXINI_FILE * | PUXINI_FILE |
typedef struct _UXTHEME_HANDLE | UXTHEME_HANDLE |
typedef struct _UXTHEME_HANDLE * | PUXTHEME_HANDLE |
typedef struct _WND_DATA | WND_DATA |
typedef struct _WND_DATA * | PWND_DATA |
typedef struct _DRAW_CONTEXT | DRAW_CONTEXT |
typedef struct _DRAW_CONTEXT * | PDRAW_CONTEXT |
Enumerations | |
enum | SCROLL_HITTEST { SCROLL_NOWHERE , SCROLL_TOP_ARROW , SCROLL_TOP_RECT , SCROLL_THUMB , SCROLL_BOTTOM_RECT , SCROLL_BOTTOM_ARROW , SCROLL_NOWHERE , SCROLL_TOP_ARROW , SCROLL_TOP_RECT , SCROLL_THUMB , SCROLL_BOTTOM_RECT , SCROLL_BOTTOM_ARROW } |
enum | CAPTIONBUTTON { CLOSEBUTTON , MAXBUTTON , MINBUTTON , HELPBUTTON } |
enum | THEME_BUTTON_STATES { BUTTON_NORMAL = 1 , BUTTON_HOT , BUTTON_PRESSED , BUTTON_DISABLED , BUTTON_INACTIVE , BUTTON_INACTIVE_HOT , BUTTON_INACTIVE_PRESSED , BUTTON_INACTIVE_DISABLED } |
Variables | |
HINSTANCE | hDllInst |
ATOM | atWindowTheme |
ATOM | atWndContext |
BOOL | g_bThemeHooksActive |
#define _INC_WINDOWS |
Definition at line 9 of file uxthemep.h.
#define ALPHABLEND_BINARY 1 |
Definition at line 285 of file uxthemep.h.
#define ALPHABLEND_FULL 2 |
Definition at line 287 of file uxthemep.h.
#define ALPHABLEND_NONE 0 |
Definition at line 283 of file uxthemep.h.
#define BUTTON_GAP_SIZE 2 |
Definition at line 240 of file uxthemep.h.
#define COM_NO_WINDOWS_H |
Definition at line 10 of file uxthemep.h.
Definition at line 238 of file uxthemep.h.
Definition at line 232 of file uxthemep.h.
#define HT_ISBUTTON | ( | ht | ) | ((ht) == HTMINBUTTON || (ht) == HTMAXBUTTON || (ht) == HTCLOSE || (ht) == HTHELP) |
Definition at line 230 of file uxthemep.h.
#define MAX_THEME_APP_NAME 60 |
Definition at line 34 of file uxthemep.h.
#define MAX_THEME_CLASS_NAME 60 |
Definition at line 35 of file uxthemep.h.
#define MAX_THEME_VALUE_NAME 60 |
Definition at line 36 of file uxthemep.h.
#define MENU_BAR_ITEMS_SPACE (12) |
Definition at line 242 of file uxthemep.h.
#define NTOS_MODE_USER |
Definition at line 25 of file uxthemep.h.
#define SCROLL_ARROW_THUMB_OVERLAP 0 |
Definition at line 247 of file uxthemep.h.
#define SCROLL_FIRST_DELAY 200 |
Definition at line 250 of file uxthemep.h.
#define SCROLL_MIN_RECT 4 |
Definition at line 259 of file uxthemep.h.
#define SCROLL_MIN_THUMB 6 |
Definition at line 256 of file uxthemep.h.
#define SCROLL_REPEAT_DELAY 50 |
Definition at line 253 of file uxthemep.h.
Definition at line 244 of file uxthemep.h.
#define TMT_ENUM 200 |
Definition at line 32 of file uxthemep.h.
#define WIN32_NO_STATUS |
Definition at line 8 of file uxthemep.h.
typedef struct _DRAW_CONTEXT DRAW_CONTEXT |
typedef struct _DRAW_CONTEXT * PDRAW_CONTEXT |
typedef struct _THEME_CLASS * PTHEME_CLASS |
typedef struct _THEME_FILE * PTHEME_FILE |
typedef struct _THEME_IMAGE * PTHEME_IMAGE |
typedef struct _THEME_PARTSTATE * PTHEME_PARTSTATE |
typedef struct _THEME_PROPERTY * PTHEME_PROPERTY |
typedef struct _UXINI_FILE* PUXINI_FILE |
Definition at line 93 of file uxthemep.h.
typedef struct _UXTHEME_HANDLE * PUXTHEME_HANDLE |
typedef struct _THEME_CLASS THEME_CLASS |
typedef struct _THEME_FILE THEME_FILE |
typedef struct _THEME_IMAGE THEME_IMAGE |
typedef struct _THEME_PARTSTATE THEME_PARTSTATE |
typedef struct _THEME_PROPERTY THEME_PROPERTY |
typedef struct _UXTHEME_HANDLE UXTHEME_HANDLE |
Enumerator | |
---|---|
CLOSEBUTTON | |
MAXBUTTON | |
MINBUTTON | |
HELPBUTTON |
Definition at line 206 of file uxthemep.h.
Definition at line 154 of file uxthemep.h.
Enumerator | |
---|---|
BUTTON_NORMAL | |
BUTTON_HOT | |
BUTTON_PRESSED | |
BUTTON_DISABLED | |
BUTTON_INACTIVE | |
BUTTON_INACTIVE_HOT | |
BUTTON_INACTIVE_PRESSED | |
BUTTON_INACTIVE_DISABLED |
Definition at line 219 of file uxthemep.h.
Definition at line 88 of file themehooks.c.
Referenced by SetThemeRegion(), ThemeCalculateCaptionButtonsPosEx(), and ThemeInitDrawContext().
Definition at line 118 of file themehooks.c.
Referenced by ThemeInitDrawContext().
HRESULT MSSTYLES_CloseThemeClass | ( | PTHEME_CLASS | tc | ) |
Definition at line 822 of file msstyles.c.
Referenced by CloseThemeData(), and OpenThemeDataInternal().
void MSSTYLES_CloseThemeFile | ( | PTHEME_FILE | tf | ) |
Definition at line 179 of file msstyles.c.
Referenced by CheckThemeSignature(), CloseThemeFile(), EnumThemeColors(), EnumThemeSizes(), GetThemeDefaults(), GetThemeDocumentationProperty(), MSSTYLES_CloseThemeClass(), UXTHEME_LoadTheme(), and UXTHEME_SetActiveTheme().
PTHEME_PROPERTY MSSTYLES_FindMetric | ( | PTHEME_FILE | tf, |
int | iPropertyPrimitive, | ||
int | iPropertyId | ||
) |
Definition at line 556 of file msstyles.c.
Referenced by GetThemeSysBool(), GetThemeSysColor(), GetThemeSysFont(), GetThemeSysInt(), GetThemeSysSize(), GetThemeSysString(), and MSSTYLES_AddMetric().
PTHEME_PARTSTATE MSSTYLES_FindPartState | ( | PTHEME_CLASS | tc, |
int | iPartId, | ||
int | iStateId, | ||
PTHEME_CLASS * | tcNext | ||
) |
Definition at line 452 of file msstyles.c.
Referenced by IsThemePartDefined(), MSSTYLES_AddPartState(), MSSTYLES_FindPartState(), and MSSTYLES_FindProperty().
PTHEME_PROPERTY MSSTYLES_FindProperty | ( | PTHEME_CLASS | tc, |
int | iPartId, | ||
int | iStateId, | ||
int | iPropertyPrimitive, | ||
int | iPropertyId | ||
) |
Definition at line 835 of file msstyles.c.
Referenced by GetThemeBool(), GetThemeColor(), GetThemeEnumValue(), GetThemeFilename(), GetThemeFont(), GetThemeInt(), GetThemeIntList(), GetThemeMargins(), GetThemeMetric(), GetThemePosition(), GetThemePropertyOrigin(), GetThemeRect(), GetThemeString(), MSSTYLES_FindProperty(), and UXTHEME_SelectImage().
HRESULT MSSTYLES_GetPropertyBool | ( | PTHEME_PROPERTY | tp, |
BOOL * | pfVal | ||
) |
Definition at line 994 of file msstyles.c.
Referenced by GetThemeBool(), GetThemeMetric(), and GetThemeSysBool().
HRESULT MSSTYLES_GetPropertyColor | ( | PTHEME_PROPERTY | tp, |
COLORREF * | pColor | ||
) |
Definition at line 1007 of file msstyles.c.
Referenced by GetThemeColor(), GetThemeMetric(), and GetThemeSysColor().
HRESULT MSSTYLES_GetPropertyFont | ( | PTHEME_PROPERTY | tp, |
HDC | hdc, | ||
LOGFONTW * | pFont | ||
) |
Definition at line 1077 of file msstyles.c.
Referenced by GetThemeFont(), and GetThemeSysFont().
HRESULT MSSTYLES_GetPropertyInt | ( | PTHEME_PROPERTY | tp, |
int * | piVal | ||
) |
Definition at line 1094 of file msstyles.c.
Referenced by GetThemeInt(), GetThemeMetric(), GetThemeSysInt(), and GetThemeSysSize().
HRESULT MSSTYLES_GetPropertyIntList | ( | PTHEME_PROPERTY | tp, |
INTLIST * | pIntList | ||
) |
Definition at line 1108 of file msstyles.c.
Referenced by GetThemeIntList().
HRESULT MSSTYLES_GetPropertyMargins | ( | PTHEME_PROPERTY | tp, |
RECT * | prc, | ||
MARGINS * | pMargins | ||
) |
Definition at line 1182 of file msstyles.c.
Referenced by GetThemeMargins().
HRESULT MSSTYLES_GetPropertyPosition | ( | PTHEME_PROPERTY | tp, |
POINT * | pPoint | ||
) |
Definition at line 1127 of file msstyles.c.
Referenced by GetThemePosition().
HRESULT MSSTYLES_GetPropertyRect | ( | PTHEME_PROPERTY | tp, |
RECT * | pRect | ||
) |
HRESULT MSSTYLES_GetPropertyString | ( | PTHEME_PROPERTY | tp, |
LPWSTR | pszBuff, | ||
int | cchMaxBuffChars | ||
) |
Definition at line 1151 of file msstyles.c.
Referenced by GetThemeEnumValue(), GetThemeFilename(), GetThemeMetric(), GetThemeString(), and GetThemeSysString().
PUXINI_FILE MSSTYLES_GetThemeIni | ( | PTHEME_FILE | tf | ) |
HBITMAP MSSTYLES_LoadBitmap | ( | PTHEME_CLASS | tc, |
LPCWSTR | lpFilename, | ||
BOOL * | hasAlpha | ||
) |
Definition at line 896 of file msstyles.c.
Referenced by UXTHEME_LoadImage(), and UXTHEME_SelectImage().
Definition at line 1126 of file stylemap.c.
Referenced by GetThemeEnumValue(), and GetThemeMetric().
BOOL MSSTYLES_LookupPartState | ( | LPCWSTR | pszClass, |
LPCWSTR | pszPart, | ||
LPCWSTR | pszState, | ||
int * | iPartId, | ||
int * | iStateId | ||
) |
Definition at line 1038 of file stylemap.c.
Referenced by MSSTYLES_ParseIniSectionName().
Definition at line 1100 of file stylemap.c.
Referenced by GetThemeDocumentationProperty(), and MSSTYLES_ParseThemeIni().
PTHEME_CLASS MSSTYLES_OpenThemeClass | ( | PTHEME_FILE | tf, |
LPCWSTR | pszAppName, | ||
LPCWSTR | pszClassList | ||
) |
Definition at line 756 of file msstyles.c.
Referenced by OpenThemeDataInternal().
HRESULT MSSTYLES_OpenThemeFile | ( | LPCWSTR | lpThemeFile, |
LPCWSTR | pszColorName, | ||
LPCWSTR | pszSizeName, | ||
PTHEME_FILE * | tf | ||
) |
Definition at line 54 of file msstyles.c.
Referenced by CheckThemeSignature(), EnumThemeColors(), EnumThemeSizes(), GetThemeDefaults(), GetThemeDocumentationProperty(), OpenThemeFile(), and UXTHEME_LoadTheme().
void MSSTYLES_ParseThemeIni | ( | PTHEME_FILE | tf | ) |
Definition at line 644 of file msstyles.c.
Referenced by OpenThemeDataInternal(), and UXTHEME_SetActiveTheme().
HRESULT MSSTYLES_ReferenceTheme | ( | PTHEME_FILE | tf | ) |
Definition at line 224 of file msstyles.c.
Referenced by UXTHEME_SetActiveTheme().
Definition at line 674 of file ncscrollbar.c.
Referenced by ThemeWndProc().
Definition at line 38 of file ncscrollbar.c.
Referenced by SCROLL_HandleScrollEvent(), and ThemeDrawScrollBar().
Definition at line 270 of file nonclient.c.
Referenced by ThemePreWindowProc().
void ThemeCleanupDrawContext | ( | PDRAW_CONTEXT | pcontext | ) |
Definition at line 182 of file nonclient.c.
Referenced by DrawNCPreview(), SCROLL_HandleScrollEvent(), ThemeHandleButton(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), and ThemeHandleNCPaint().
void ThemeDrawScrollBar | ( | PDRAW_CONTEXT | pcontext, |
INT | Bar, | ||
POINT * | pt | ||
) |
Definition at line 318 of file ncscrollbar.c.
Referenced by ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), and ThemePaintWindow().
void ThemeDrawScrollBarEx | ( | PDRAW_CONTEXT | pcontext, |
INT | nBar, | ||
PSCROLLBARINFO | psbi, | ||
POINT * | pt | ||
) |
Definition at line 276 of file ncscrollbar.c.
Referenced by DrawWindowForNCPreview(), and ThemeDrawScrollBar().
Definition at line 17 of file themehooks.c.
Referenced by DefWndNCHitTest(), GetDiaogTextureBrush(), GetNCCaptionTheme(), GetNCScrollbarTheme(), OnPostWinPosChanged(), SCROLL_TrackScrollBar(), ThemeCalculateCaptionButtonsPosEx(), ThemeDrawCaptionButton(), ThemeDrawScrollBarEx(), ThemeGetScrollInfo(), ThemeHandleButton(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), ThemePreWindowProc(), ThemeSetScrollInfo(), and ThemeSetWindowRgn().
void ThemeInitDrawContext | ( | PDRAW_CONTEXT | pcontext, |
HWND | hWnd, | ||
HRGN | hRgn | ||
) |
Definition at line 158 of file nonclient.c.
Referenced by SCROLL_HandleScrollEvent(), ThemeHandleButton(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), and ThemeHandleNCPaint().
LRESULT CALLBACK ThemeWndProc | ( | HWND | hWnd, |
UINT | Msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam, | ||
WNDPROC | DefWndProc | ||
) |
Definition at line 1015 of file nonclient.c.
Referenced by ThemeDefWindowProcA(), and ThemeDefWindowProcW().
void UXINI_CloseINI | ( | PUXINI_FILE | uf | ) |
Definition at line 83 of file uxini.c.
Referenced by GetThemeDocumentationProperty(), and MSSTYLES_ParseThemeIni().
BOOL UXINI_FindSection | ( | PUXINI_FILE | uf, |
LPCWSTR | lpName | ||
) |
Definition at line 200 of file uxini.c.
Referenced by GetThemeDocumentationProperty().
BOOL UXINI_FindValue | ( | PUXINI_FILE | uf, |
LPCWSTR | lpName, | ||
LPCWSTR * | lpValue, | ||
DWORD * | dwValueLen | ||
) |
Definition at line 280 of file uxini.c.
Referenced by GetThemeDocumentationProperty().
LPCWSTR UXINI_GetNextSection | ( | PUXINI_FILE | uf, |
DWORD * | dwLen | ||
) |
Definition at line 173 of file uxini.c.
Referenced by MSSTYLES_ParseThemeIni(), and UXINI_FindSection().
LPCWSTR UXINI_GetNextValue | ( | PUXINI_FILE | uf, |
DWORD * | dwNameLen, | ||
LPCWSTR * | lpValue, | ||
DWORD * | dwValueLen | ||
) |
Definition at line 226 of file uxini.c.
Referenced by MSSTYLES_ParseThemeIni(), and UXINI_FindValue().
PUXINI_FILE UXINI_LoadINI | ( | HMODULE | hTheme, |
LPCWSTR | lpName | ||
) |
Definition at line 52 of file uxini.c.
Referenced by MSSTYLES_GetActiveThemeIni(), and MSSTYLES_GetThemeIni().
Definition at line 68 of file system.c.
Referenced by ApplyTheme(), EnableTheming(), SetWindowTheme(), ThemeHooksInstall(), ThemeHooksRemove(), and UXTHEME_broadcast_theme_changed().
Definition at line 566 of file system.c.
Referenced by DllMain().
HRESULT UXTHEME_LoadImage | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
const RECT * | pRect, | ||
BOOL | glyph, | ||
HBITMAP * | hBmp, | ||
RECT * | bmpRect, | ||
BOOL * | hasImageAlpha | ||
) |
Definition at line 230 of file draw.c.
Referenced by get_image_part_size(), GetDiaogTextureBrush(), IsThemeBackgroundPartiallyTransparent(), UXTHEME_DrawImageBackground(), and UXTHEME_DrawImageGlyph().
Definition at line 183 of file system.c.
Referenced by ThemeInitApiHook(), and ThemePreWindowProc().
PTHEME_CLASS ValidateHandle | ( | HTHEME | hTheme | ) |
Definition at line 717 of file system.c.
Referenced by HitTestThemeBackground(), and IsThemePartDefined().
WINE_DEFAULT_DEBUG_CHANNEL | ( | uxtheme | ) |
|
extern |
Definition at line 49 of file system.c.
Referenced by GetWindowTheme(), OpenThemeDataInternal(), and UXTHEME_InitSystem().
|
extern |
Definition at line 52 of file system.c.
Referenced by ThemeDefWindowProcA(), ThemeDefWindowProcW(), ThemeDestroyWndData(), ThemeGetWndData(), and UXTHEME_InitSystem().
|
extern |
Definition at line 15 of file themehooks.c.
Referenced by CheckThemeSignature(), ClassicAdjustWindowRectEx(), ClassicGetSystemMetrics(), ClassicSystemParametersInfoA(), ClassicSystemParametersInfoW(), EnumThemeColors(), EnumThemeSizes(), GetThemeDefaults(), GetThemeDocumentationProperty(), IsThemeActive(), OpenThemeFile(), ThemeInitApiHook(), UXTHEME_LoadTheme(), and ValidateHandle().
|
extern |
Definition at line 45 of file system.c.
Referenced by DrawNCPreview(), SetWindowResourceText(), ThemeHooksInstall(), and UXTHEME_InitSystem().