Skip to content

Commit f22f10c

Browse files
committed
Apply taskbar customizations to News and interests
Fixes #676
1 parent faf79de commit f22f10c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -3106,6 +3106,9 @@ static void InitStartMenuDLL( void )
31063106
taskBar.chevron=FindWindowEx(tray,NULL,L"Button",NULL);
31073107
if (taskBar.chevron)
31083108
SetWindowSubclass(taskBar.chevron,SubclassTrayChevronProc,'CLSH',taskBar.taskbarId);
3109+
taskBar.news=FindWindowEx(g_TaskBar,NULL,L"DynamicContent2",NULL);
3110+
if (taskBar.news)
3111+
SetWindowSubclass(taskBar.news,SubclassTrayChevronProc,'CLSH',taskBar.taskbarId);
31093112
}
31103113

31113114
HandleTaskbarParts(taskBar,true);
@@ -3295,6 +3298,8 @@ if (!g_bTrimHooks)
32953298
}
32963299
if (it->second.chevron)
32973300
RemoveWindowSubclass(it->second.chevron,SubclassTrayChevronProc,'CLSH');
3301+
if (it->second.news)
3302+
RemoveWindowSubclass(it->second.news,SubclassTrayChevronProc,'CLSH');
32983303
if (it->second.desktop)
32993304
RemoveWindowSubclass(it->second.desktop,SubclassDesktopButtonProc,'CLSH');
33003305
if (it->second.bTimer)

Src/StartMenu/StartMenuDLL/StartMenuDLL.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@ void EnableStartTooltip( bool bEnable );
4747

4848
struct TaskbarInfo
4949
{
50-
TaskbarInfo( void ) { taskbarId=pointerId=0; taskBar=startButton=oldButton=rebar=taskList=chevron=desktop=NULL; startButtonSize.cx=startButtonSize.cy=0; oldButtonSize.cx=oldButtonSize.cy=0; bTimer=bCustomLook=bReplaceButton=bHideButton=bRecreatingButton=bThemeChanging=false; }
50+
TaskbarInfo( void ) { taskbarId=pointerId=0; taskBar=startButton=oldButton=rebar=taskList=chevron=news=desktop=NULL; startButtonSize.cx=startButtonSize.cy=0; oldButtonSize.cx=oldButtonSize.cy=0; bTimer=bCustomLook=bReplaceButton=bHideButton=bRecreatingButton=bThemeChanging=false; }
5151
int taskbarId;
5252
HWND taskBar;
5353
HWND startButton; // either own start button or the win7 start button (depending on bReplaceButton)
5454
HWND oldButton; // win8.1+ start button (child of taskBar)
5555
HWND rebar;
5656
HWND taskList;
5757
HWND chevron;
58+
HWND news;
5859
HWND desktop;
5960
SIZE startButtonSize;
6061
SIZE oldButtonSize;

0 commit comments

Comments
 (0)