static const WCHAR refDataPropName[] =
{ 'C','C','3','2','T','h','e','m','i','n','g','D','a','t','a',0 };
- if (!IsThemeActive()) return;
+ if (!IsThemeActive()) return; // If so, un-register the class then register it again.
atSubclassProp = GlobalAddAtomW (subclassPropName);
atRefDataProp = GlobalAddAtomW (refDataPropName);
GetClassInfoExW (NULL, subclasses[i].className, &class);
originalProcs[i] = class.lpfnWndProc;
class.lpfnWndProc = subclassProcs[i];
- class.style |= CS_GLOBALCLASS;
- class.hInstance = COMCTL32_hModule;
+ class.hInstance = COMCTL32_hModule; // Always set the instance so it can be found again.
if (!class.lpfnWndProc)
{