Author: gadamopoulos
Date: Mon Sep 26 19:36:01 2011
New Revision: 53866
URL:
http://svn.reactos.org/svn/reactos?rev=53866&view=rev
Log:
[comctl32]
- Do not subclass user32 controls when themes are disabled.This is a temporary hack
bacause it turns out that subclassing causes problems. When it is fixed this will be
reverted. This change means that in order to make themes work properly, the user has to
reboot after enabling.
Modified:
trunk/reactos/dll/win32/comctl32/theming.c
Modified: trunk/reactos/dll/win32/comctl32/theming.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/comctl32/theming…
==============================================================================
--- trunk/reactos/dll/win32/comctl32/theming.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/comctl32/theming.c [iso-8859-1] Mon Sep 26 19:36:01 2011
@@ -118,7 +118,9 @@
{
'C','C','3','2','T','h','e','m','i','n','g','S','u','b','C','l',0
};
static const WCHAR refDataPropName[] =
{
'C','C','3','2','T','h','e','m','i','n','g','D','a','t','a',0
};
-
+
+ if (!IsThemeActive()) return;
+
atSubclassProp = GlobalAddAtomW (subclassPropName);
atRefDataProp = GlobalAddAtomW (refDataPropName);