Author: gadamopoulos
Date: Fri Mar 3 14:35:19 2017
New Revision: 74038
URL:
http://svn.reactos.org/svn/reactos?rev=74038&view=rev
Log:
[UXTHEME]: Use SendMessage to notify windows that the theme has changed. This needs a
proper test. Makes it possible for SetWindowTheme with empty parameters to have effect
immediately in the same way the tests for BCM_GETIDEALSIZE use it. Fixes the
BCM_GETIDEALSIZE tests when run with an active theme.
Modified:
trunk/reactos/dll/win32/uxtheme/system.c
Modified: trunk/reactos/dll/win32/uxtheme/system.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/uxtheme/system.c…
==============================================================================
--- trunk/reactos/dll/win32/uxtheme/system.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/uxtheme/system.c [iso-8859-1] Fri Mar 3 14:35:19 2017
@@ -57,7 +57,7 @@
static BOOL CALLBACK UXTHEME_broadcast_msg_enumchild (HWND hWnd, LPARAM msg)
{
- PostMessageW(hWnd, msg, 0, 0);
+ SendMessageW(hWnd, msg, 0, 0);
return TRUE;
}
@@ -70,7 +70,7 @@
}
else
{
- PostMessageW(hWnd, msg, 0, 0);
+ SendMessageW(hWnd, msg, 0, 0);
EnumChildWindows (hWnd, UXTHEME_broadcast_msg_enumchild, msg);
}
return TRUE;