From 58a5ac15644eed700ba8f5f0f55d129c39dd124a Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Mon, 26 Sep 2011 19:36:01 +0000 Subject: [PATCH] [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. svn path=/trunk/; revision=53866 --- reactos/dll/win32/comctl32/theming.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/comctl32/theming.c b/reactos/dll/win32/comctl32/theming.c index f8d219874be..6d81a48005b 100644 --- a/reactos/dll/win32/comctl32/theming.c +++ b/reactos/dll/win32/comctl32/theming.c @@ -118,7 +118,9 @@ void THEMING_Initialize (void) { '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);