Author: gadamopoulos
Date: Sat May 14 18:47:23 2011
New Revision: 51745
URL:
http://svn.reactos.org/svn/reactos?rev=51745&view=rev
Log:
[uxtheme]
- Hook the same messages with win2003
Modified:
branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c
branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/themehooks.c
Modified: branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/dll/win…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c [iso-8859-1] Sat May 14
18:47:23 2011
@@ -25,8 +25,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(uxtheme);
-LRESULT
-ThemeDefWindowProcAW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, WNDPROC
defWndProc, BOOL ANSI)
+LRESULT CALLBACK
+ThemeWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, WNDPROC DefWndProc)
{
UNIMPLEMENTED;
@@ -34,5 +34,5 @@
if(Msg == WM_NCPAINT || Msg == WM_NCACTIVATE)
return FALSE;
- return defWndProc(hWnd, Msg, wParam, lParam);
+ return DefWndProc(hWnd, Msg, wParam, lParam);
}
Modified: branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/themehooks.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/dll/win…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/themehooks.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/themehooks.c [iso-8859-1] Sat May
14 18:47:23 2011
@@ -20,32 +20,30 @@
extern HINSTANCE hDllInst;
-LRESULT
-ThemeDefWindowProcAW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, WNDPROC
defWndProc, BOOL ANSI);
+LRESULT CALLBACK ThemeWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, WNDPROC
DefWndProc);
USERAPIHOOK user32ApiHook;
BYTE gabDWPmessages[UAHOWP_MAX_SIZE];
+BYTE gabMSGPmessages[UAHOWP_MAX_SIZE];
static LRESULT CALLBACK
ThemeDefWindowProcW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
- return ThemeDefWindowProcAW(hWnd,
- Msg,
- wParam,
- lParam,
- user32ApiHook.DefWindowProcW,
- FALSE);
+ return ThemeWndProc(hWnd,
+ Msg,
+ wParam,
+ lParam,
+ user32ApiHook.DefWindowProcW);
}
static LRESULT CALLBACK
ThemeDefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
- return ThemeDefWindowProcAW(hWnd,
- Msg,
- wParam,
- lParam,
- user32ApiHook.DefWindowProcA,
- TRUE);
+ return ThemeWndProc(hWnd,
+ Msg,
+ wParam,
+ lParam,
+ user32ApiHook.DefWindowProcA);
}
BOOL CALLBACK
@@ -64,19 +62,44 @@
puah->DefWindowProcW = ThemeDefWindowProcW;
puah->DefWndProcArray.MsgBitArray = gabDWPmessages;
puah->DefWndProcArray.Size = UAHOWP_MAX_SIZE;
+ puah->WndProcArray.MsgBitArray = gabMSGPmessages;
+ puah->WndProcArray.Size = UAHOWP_MAX_SIZE;
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_CREATE);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_DESTROY);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_THEMECHANGED);
UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCPAINT);
UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCACTIVATE);
UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCMOUSEMOVE);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_MOUSEMOVE);
UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCMOUSELEAVE);
UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCHITTEST);
UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCLBUTTONDOWN);
- UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCLBUTTONDBLCLK);
-
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCUAHDRAWCAPTION);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCUAHDRAWFRAME);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_SETTEXT);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_WINDOWPOSCHANGED);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_CONTEXTMENU);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_STYLECHANGED);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_SETICON);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_NCDESTROY);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_SYSCOMMAND);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_CTLCOLORMSGBOX);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_CTLCOLORBTN);
+ UAH_HOOK_MESSAGE(puah->DefWndProcArray, WM_CTLCOLORSTATIC);
+
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_CREATE);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_SETTINGCHANGE);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_DRAWITEM);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_MEASUREITEM);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_WINDOWPOSCHANGING);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_WINDOWPOSCHANGED);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_STYLECHANGING);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_STYLECHANGED);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_NCCREATE);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_NCDESTROY);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_NCPAINT);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_MENUCHAR);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_MDISETMENU);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_THEMECHANGED);
+ UAH_HOOK_MESSAGE(puah->WndProcArray, WM_UAHINIT);
+
return TRUE;
}