Author: gadamopoulos
Date: Tue Aug 2 13:59:13 2011
New Revision: 53030
URL: http://svn.reactos.org/svn/reactos?rev=53030&view=rev
Log:
[win32k]
- HACK RegisterClass in order to let comctl32 re-register built in classes. This is needed in order to fix themes and will keep it till we find a way to do it properly. (of course this breaks class wine tests as well)
Modified:
branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/class.c
Modified: branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/class.c
URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/subsyst…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/class.c [iso-8859-1] (original)
+++ branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/class.c [iso-8859-1] Tue Aug 2 13:59:13 2011
@@ -1295,8 +1295,9 @@
if (lpwcx->style & CS_GLOBALCLASS)
{
+ /* HACK: allow global classes to be re-registered*/
Class = IntFindClass( ClassAtom,
- NULL,
+ lpwcx->hInstance,
&pi->pclsPublicList,
NULL);
Author: gadamopoulos
Date: Tue Aug 2 13:54:41 2011
New Revision: 53029
URL: http://svn.reactos.org/svn/reactos?rev=53029&view=rev
Log:
[comctl32]
- Register themed built-in controls even if themes are not enabled. This allows built in controls to use themes without restarting the application
- Register built in controls in the same way it done in windows (as global classes that belong to comctl32). This is needed in order to have themed controls in dialogs. Unfortunately our user32/win32k does not support it yet and this breaks themed built in controls
Modified:
branches/GSoC_2011/ThemesSupport/dll/win32/comctl32/theming.c
Modified: branches/GSoC_2011/ThemesSupport/dll/win32/comctl32/theming.c
URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/dll/win…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/dll/win32/comctl32/theming.c [iso-8859-1] (original)
+++ branches/GSoC_2011/ThemesSupport/dll/win32/comctl32/theming.c [iso-8859-1] Tue Aug 2 13:54:41 2011
@@ -118,9 +118,7 @@
{ '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);
@@ -133,6 +131,8 @@
GetClassInfoExW (NULL, subclasses[i].className, &class);
originalProcs[i] = class.lpfnWndProc;
class.lpfnWndProc = subclassProcs[i];
+ class.style |= CS_GLOBALCLASS;
+ class.hInstance = COMCTL32_hModule;
if (!class.lpfnWndProc)
{