10#define COM_NO_WINDOWS_H
34#define MAX_THEME_APP_NAME 60
35#define MAX_THEME_CLASS_NAME 60
36#define MAX_THEME_VALUE_NAME 60
120#ifdef ENABLE_PNG_SUPPORT
230#define HT_ISBUTTON(ht) ((ht) == HTMINBUTTON || (ht) == HTMAXBUTTON || (ht) == HTCLOSE || (ht) == HTHELP)
232#define HASSIZEGRIP(Style, ExStyle, ParentStyle, WindowRect, ParentClientRect) \
233 ((!(Style & WS_CHILD) && (Style & WS_THICKFRAME) && !(Style & WS_MAXIMIZE)) || \
234 ((Style & WS_CHILD) && (ParentStyle & WS_THICKFRAME) && !(ParentStyle & WS_MAXIMIZE) && \
235 (WindowRect.right - WindowRect.left == ParentClientRect.right) && \
236 (WindowRect.bottom - WindowRect.top == ParentClientRect.bottom)))
238#define HAS_MENU(hwnd,style) ((((style) & (WS_CHILD | WS_POPUP)) != WS_CHILD) && GetMenu(hwnd))
240#define BUTTON_GAP_SIZE 2
242#define MENU_BAR_ITEMS_SPACE (12)
244#define SCROLL_TIMER 0
247#define SCROLL_ARROW_THUMB_OVERLAP 0
250#define SCROLL_FIRST_DELAY 200
253#define SCROLL_REPEAT_DELAY 50
256#define SCROLL_MIN_THUMB 6
259#define SCROLL_MIN_RECT 4
283#define ALPHABLEND_NONE 0
285#define ALPHABLEND_BINARY 1
287#define ALPHABLEND_FULL 2
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
GLuint GLuint GLsizei GLenum type
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
BOOL MSSTYLES_TryLoadPng(_In_ HINSTANCE hTheme, _In_ LPCWSTR szFile, _In_ LPCWSTR type, _Out_ HBITMAP *phBitmap)
BOOL prepare_png_alpha(_In_ HBITMAP png, _Out_ BOOL *hasAlpha)
struct _THEME_CLASS * overrides
WCHAR szAppName[MAX_THEME_APP_NAME]
PTHEME_PARTSTATE partstate
struct _THEME_CLASS * next
WCHAR szClassName[MAX_THEME_CLASS_NAME]
WCHAR szThemeFile[MAX_PATH]
struct _THEME_IMAGE * next
struct _THEME_PARTSTATE * next
PTHEME_PROPERTY properties
struct _THEME_PROPERTY * next
RTL_HANDLE_TABLE_ENTRY Handle
enum SCROLL_HITTEST SCROLL_trackHitTest
HBRUSH hTabBackgroundBrush
BOOL SCROLL_trackVertical
HBITMAP hTabBackgroundBmp
PTHEME_PARTSTATE MSSTYLES_FindPartState(PTHEME_CLASS tc, int iPartId, int iStateId, PTHEME_CLASS *tcNext)
struct _UXINI_FILE * PUXINI_FILE
HTHEME GetNCScrollbarTheme(HWND hWnd, DWORD style)
void UXTHEME_LoadTheme(BOOL bLoad)
struct _THEME_PARTSTATE THEME_PARTSTATE
BOOL MSSTYLES_LookupEnum(LPCWSTR pszValueName, int dwEnum, int *dwValue)
PTHEME_PROPERTY MSSTYLES_FindProperty(PTHEME_CLASS tc, int iPartId, int iStateId, int iPropertyPrimitive, int iPropertyId)
struct _UXTHEME_HANDLE * PUXTHEME_HANDLE
void ThemeCleanupDrawContext(PDRAW_CONTEXT pcontext)
HRESULT MSSTYLES_GetPropertyFont(PTHEME_PROPERTY tp, HDC hdc, LOGFONTW *pFont)
PUXINI_FILE MSSTYLES_GetThemeIni(PTHEME_FILE tf)
BOOL CALLBACK UXTHEME_broadcast_theme_changed(HWND hWnd, LPARAM enable)
HRESULT MSSTYLES_ReferenceTheme(PTHEME_FILE tf)
struct _THEME_IMAGE THEME_IMAGE
HRESULT MSSTYLES_GetPropertyBool(PTHEME_PROPERTY tp, BOOL *pfVal)
HRESULT MSSTYLES_GetPropertyString(PTHEME_PROPERTY tp, LPWSTR pszBuff, int cchMaxBuffChars)
LPCWSTR UXINI_GetNextSection(PUXINI_FILE uf, DWORD *dwLen)
HRESULT MSSTYLES_GetPropertyMargins(PTHEME_PROPERTY tp, RECT *prc, MARGINS *pMargins)
struct _THEME_CLASS * PTHEME_CLASS
HRESULT MSSTYLES_GetPropertyColor(PTHEME_PROPERTY tp, COLORREF *pColor)
PUXINI_FILE UXINI_LoadINI(HMODULE hTheme, LPCWSTR lpName)
struct _THEME_PROPERTY THEME_PROPERTY
PTHEME_CLASS MSSTYLES_OpenThemeClass(PTHEME_FILE tf, LPCWSTR pszAppName, LPCWSTR pszClassList)
LONG SCROLL_getObjectId(INT nBar)
void ThemeDrawScrollBar(PDRAW_CONTEXT pcontext, INT Bar, POINT *pt)
void MSSTYLES_CloseThemeFile(PTHEME_FILE tf)
struct _THEME_IMAGE * PTHEME_IMAGE
#define MAX_THEME_CLASS_NAME
HRESULT MSSTYLES_GetPropertyIntList(PTHEME_PROPERTY tp, INTLIST *pIntList)
struct _DRAW_CONTEXT DRAW_CONTEXT
HRESULT MSSTYLES_GetPropertyRect(PTHEME_PROPERTY tp, RECT *pRect)
struct _THEME_CLASS THEME_CLASS
HBITMAP MSSTYLES_LoadBitmap(PTHEME_CLASS tc, LPCWSTR lpFilename, BOOL *hasAlpha)
struct _THEME_FILE THEME_FILE
void UXTHEME_InitSystem(HINSTANCE hInst)
BOOL UXINI_FindSection(PUXINI_FILE uf, LPCWSTR lpName)
struct _UXTHEME_HANDLE UXTHEME_HANDLE
HRESULT MSSTYLES_GetPropertyPosition(PTHEME_PROPERTY tp, POINT *pPoint)
HRESULT MSSTYLES_OpenThemeFile(LPCWSTR lpThemeFile, LPCWSTR pszColorName, LPCWSTR pszSizeName, PTHEME_FILE *tf)
HRESULT MSSTYLES_CloseThemeClass(PTHEME_CLASS tc)
void ThemeInitDrawContext(PDRAW_CONTEXT pcontext, HWND hWnd, HRGN hRgn)
struct _WND_DATA WND_DATA
LRESULT CALLBACK ThemeWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, WNDPROC DefWndProc)
struct _THEME_PROPERTY * PTHEME_PROPERTY
@ BUTTON_INACTIVE_DISABLED
@ BUTTON_INACTIVE_PRESSED
LPCWSTR UXINI_GetNextValue(PUXINI_FILE uf, DWORD *dwNameLen, LPCWSTR *lpValue, DWORD *dwValueLen)
PTHEME_PROPERTY MSSTYLES_FindMetric(PTHEME_FILE tf, int iPropertyPrimitive, int iPropertyId)
void ThemeCalculateCaptionButtonsPos(HWND hWnd, HTHEME htheme)
struct _DRAW_CONTEXT * PDRAW_CONTEXT
void MSSTYLES_ParseThemeIni(PTHEME_FILE tf)
PTHEME_CLASS ValidateHandle(HTHEME hTheme)
HRESULT MSSTYLES_GetPropertyInt(PTHEME_PROPERTY tp, int *piVal)
HRESULT UXTHEME_LoadImage(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, BOOL glyph, HBITMAP *hBmp, RECT *bmpRect, BOOL *hasImageAlpha)
BOOL UXINI_FindValue(PUXINI_FILE uf, LPCWSTR lpName, LPCWSTR *lpValue, DWORD *dwValueLen)
void UXINI_CloseINI(PUXINI_FILE uf)
HTHEME GetNCCaptionTheme(HWND hWnd, DWORD style)
VOID NC_TrackScrollBar(HWND Wnd, WPARAM wParam, POINT Pt)
void ThemeDrawScrollBarEx(PDRAW_CONTEXT pcontext, INT nBar, PSCROLLBARINFO psbi, POINT *pt)
#define MAX_THEME_APP_NAME
PWND_DATA ThemeGetWndData(HWND hWnd)
struct _THEME_PARTSTATE * PTHEME_PARTSTATE
struct _THEME_FILE * PTHEME_FILE
BOOL MSSTYLES_LookupProperty(LPCWSTR pszPropertyName, int *dwPrimitive, int *dwId)
BOOL MSSTYLES_LookupPartState(LPCWSTR pszClass, LPCWSTR pszPart, LPCWSTR pszState, int *iPartId, int *iStateId)
struct _WND_DATA * PWND_DATA
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)