mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 01:13:38 +00:00
[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 svn path=/branches/GSoC_2011/ThemesSupport/; revision=53029
This commit is contained in:
parent
234190071e
commit
1c6d8ce568
|
@ -118,9 +118,7 @@ void THEMING_Initialize (void)
|
||||||
{ 'C','C','3','2','T','h','e','m','i','n','g','S','u','b','C','l',0 };
|
{ 'C','C','3','2','T','h','e','m','i','n','g','S','u','b','C','l',0 };
|
||||||
static const WCHAR refDataPropName[] =
|
static const WCHAR refDataPropName[] =
|
||||||
{ 'C','C','3','2','T','h','e','m','i','n','g','D','a','t','a',0 };
|
{ 'C','C','3','2','T','h','e','m','i','n','g','D','a','t','a',0 };
|
||||||
|
|
||||||
if (!IsThemeActive()) return;
|
|
||||||
|
|
||||||
atSubclassProp = GlobalAddAtomW (subclassPropName);
|
atSubclassProp = GlobalAddAtomW (subclassPropName);
|
||||||
atRefDataProp = GlobalAddAtomW (refDataPropName);
|
atRefDataProp = GlobalAddAtomW (refDataPropName);
|
||||||
|
|
||||||
|
@ -133,6 +131,8 @@ void THEMING_Initialize (void)
|
||||||
GetClassInfoExW (NULL, subclasses[i].className, &class);
|
GetClassInfoExW (NULL, subclasses[i].className, &class);
|
||||||
originalProcs[i] = class.lpfnWndProc;
|
originalProcs[i] = class.lpfnWndProc;
|
||||||
class.lpfnWndProc = subclassProcs[i];
|
class.lpfnWndProc = subclassProcs[i];
|
||||||
|
class.style |= CS_GLOBALCLASS;
|
||||||
|
class.hInstance = COMCTL32_hModule;
|
||||||
|
|
||||||
if (!class.lpfnWndProc)
|
if (!class.lpfnWndProc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue