128 if (pwndData ==
NULL)
174 int CaptionHeight, iPart;
197 rcWindow.
bottom = CaptionHeight;
207 rcWindow.
top = CaptionHeight;
230 if (pwndData ==
NULL)
322 case WM_STYLECHANGED:
330 case WM_THEMECHANGED:
337 if (pwndData ==
NULL)
373 if (pwndData ==
NULL)
407 if (pwndData ==
NULL)
424 RECT rcWindow, rcParent;
426 HDC hdcPattern, hdcHackPattern;
427 HBITMAP hbmpOld1, hbmpold2, hbmpHack;
493 HBRUSH* phbrush = (HBRUSH*)
ret;
513 WCHAR controlClass[32];
514 GetClassNameW (hwndTarget, controlClass,
sizeof(controlClass) /
sizeof(controlClass[0]));
556 if (pwndData ==
NULL)
721 ret = lpfunc2003(&uah);
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
#define GetProcAddress(x, y)
#define HeapFree(x, y, z)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
BOOL WINAPI IsThemeDialogTextureEnabled(HWND hwnd)
HRESULT WINAPI GetThemeBackgroundRegion(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HRGN *pRegion)
HRESULT UXTHEME_LoadImage(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, BOOL glyph, HBITMAP *hBmp, RECT *bmpRect, BOOL *hasImageAlpha)
LRESULT CALLBACK ThemeWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, WNDPROC DefWndProc)
void ThemeCalculateCaptionButtonsPos(HWND hWnd, HTHEME htheme)
void UXTHEME_LoadTheme(BOOL bLoad)
DWORD WINAPI GetThemeAppProperties(void)
HTHEME WINAPI OpenThemeDataEx(HWND hwnd, LPCWSTR pszClassList, DWORD flags)
BOOL CALLBACK UXTHEME_broadcast_theme_changed(HWND hWnd, LPARAM enable)
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
HTHEME WINAPI GetWindowTheme(HWND hwnd)
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
BOOL WINAPI IsAppThemed(void)
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ProcessId
GLint GLint GLint GLint GLint GLint y
#define memcpy(s1, s2, n)
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
ULONG dwOSVersionInfoSize
HBRUSH hTabBackgroundBrush
HBITMAP hTabBackgroundBmp
SYSTEMPARAMETERSINFOA SystemParametersInfoA
SETWINDOWRGN SetWindowRgn
GETSCROLLINFO GetScrollInfo
SYSTEMPARAMETERSINFOW SystemParametersInfoW
GETSYSTEMMETRICS GetSystemMetrics
ADJUSTWINDOWRECTEX AdjustWindowRectEx
WNDPROC_OWP PreDefDlgProc
WNDPROC_OWP PostDefDlgProc
SETSCROLLINFO SetScrollInfo
HTHEME GetNCScrollbarTheme(HWND hWnd, DWORD style)
USERAPIHOOK g_user32ApiHook
static LRESULT CALLBACK ThemeDefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
BYTE gabMSGPmessages[UAHOWP_MAX_SIZE]
INT WINAPI ClassicGetSystemMetrics(int nIndex)
BOOL WINAPI ThemeGetScrollInfo(HWND hwnd, int fnBar, LPSCROLLINFO lpsi)
INT WINAPI ThemeSetScrollInfo(HWND hWnd, int fnBar, LPCSCROLLINFO lpsi, BOOL bRedraw)
BOOL WINAPI ThemeHooksRemove()
INT WINAPI ClassicSystemParametersInfoA(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
static LRESULT CALLBACK ThemePreWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, ULONG_PTR ret, PDWORD unknown)
HRESULT GetDiaogTextureBrush(HTHEME theme, HWND hwnd, HDC hdc, HBRUSH *result, BOOL changeOrigin)
INT WINAPI ClassicSystemParametersInfoW(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
int OnPostWinPosChanged(HWND hWnd, WINDOWPOS *pWinPos)
static LRESULT CALLBACK ThemeDlgPostWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, ULONG_PTR ret, PDWORD unknown)
static LRESULT CALLBACK ThemeDlgPreWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, ULONG_PTR ret, PDWORD unknown)
BYTE gabDWPmessages[UAHOWP_MAX_SIZE]
BOOL WINAPI ThemeHooksInstall()
static BOOL CALLBACK ThemeCleanupChildWndContext(HWND hWnd, LPARAM msg)
BOOL WINAPI ClassicAdjustWindowRectEx(LPRECT lpRect, DWORD dwStyle, BOOL bMenu, DWORD dwExStyle)
static LRESULT CALLBACK ThemePostWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, ULONG_PTR ret, PDWORD unknown)
void SetThemeRegion(HWND hWnd)
BYTE gabDLGPmessages[UAHOWP_MAX_SIZE]
static BOOL CALLBACK ThemeCleanupWndContext(HWND hWnd, LPARAM msg)
int WINAPI ThemeSetWindowRgn(HWND hWnd, HRGN hRgn, BOOL bRedraw)
BOOL(WINAPI * PREGISTER_UAH_WINXP)(HINSTANCE hInstance, USERAPIHOOKPROC CallbackFunc)
HTHEME GetNCCaptionTheme(HWND hWnd, DWORD style)
void ThemeDestroyWndData(HWND hWnd)
static LRESULT CALLBACK ThemeDefWindowProcW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
PWND_DATA ThemeGetWndData(HWND hWnd)
BOOL CALLBACK ThemeInitApiHook(UAPIHK State, PUSERAPIHOOK puah)
void HackFillStaticBg(HWND hwnd, HDC hdc, HBRUSH *result)
BOOL(WINAPI * PREGISTER_UUAH_WIN2003)(PUSERAPIHOOKINFO puah)
#define WM_NCUAHDRAWCAPTION
BOOL WINAPI UnregisterUserApiHook(VOID)
BOOL(CALLBACK * USERAPIHOOKPROC)(UAPIHK State, PUSERAPIHOOK puah)
#define UAH_HOOK_MESSAGE(uahowp, msg)
#define WM_NCUAHDRAWFRAME
struct _WND_DATA * PWND_DATA
DWORD WINAPI GetCurrentProcessId(void)
DWORD WINAPI GetWindowThreadProcessId(HWND hWnd, PDWORD lpdwProcessId)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
int WINAPI CombineRgn(_In_opt_ HRGN hrgnDest, _In_opt_ HRGN hrgnSrc1, _In_opt_ HRGN hrgnSrc2, _In_ int fnCombineMode)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
HRGN WINAPI CreateRectRgnIndirect(_In_ LPCRECT)
BOOL WINAPI DeleteDC(_In_ HDC)
HBRUSH WINAPI CreatePatternBrush(_In_ HBITMAP)
#define WM_CTLCOLORSTATIC
#define WM_WINDOWPOSCHANGING
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI GetWindowInfo(_In_ HWND, _Inout_ PWINDOWINFO)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
BOOL WINAPI AdjustWindowRectEx(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL, _In_ DWORD)
BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM)
#define WM_CTLCOLORMSGBOX
HWND WINAPI GetDesktopWindow(void)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EnumWindows(_In_ WNDENUMPROC lpEnumFunc, _In_ LPARAM lParam)
BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE)
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
HWND WINAPI GetParent(_In_ HWND)
HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR)
int WINAPI GetClassNameW(_In_ HWND hWnd, _Out_writes_to_(nMaxCount, return) LPWSTR lpClassName, _In_ int nMaxCount)
BOOL WINAPI SystemParametersInfoA(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
#define WM_WINDOWPOSCHANGED
int WINAPI GetSystemMetrics(_In_ int)
HWND WINAPI GetAncestor(_In_ HWND, _In_ UINT)
OSVERSIONINFOA OSVERSIONINFO