Apply taskbar customizations to News and interests

Fixes #676
This commit is contained in:
ge0rdi
2025-01-04 16:10:52 +01:00
parent faf79de4d5
commit f22f10c7d5
2 changed files with 7 additions and 1 deletions

View File

@@ -3106,6 +3106,9 @@ static void InitStartMenuDLL( void )
taskBar.chevron=FindWindowEx(tray,NULL,L"Button",NULL);
if (taskBar.chevron)
SetWindowSubclass(taskBar.chevron,SubclassTrayChevronProc,'CLSH',taskBar.taskbarId);
taskBar.news=FindWindowEx(g_TaskBar,NULL,L"DynamicContent2",NULL);
if (taskBar.news)
SetWindowSubclass(taskBar.news,SubclassTrayChevronProc,'CLSH',taskBar.taskbarId);
}
HandleTaskbarParts(taskBar,true);
@@ -3295,6 +3298,8 @@ if (!g_bTrimHooks)
}
if (it->second.chevron)
RemoveWindowSubclass(it->second.chevron,SubclassTrayChevronProc,'CLSH');
if (it->second.news)
RemoveWindowSubclass(it->second.news,SubclassTrayChevronProc,'CLSH');
if (it->second.desktop)
RemoveWindowSubclass(it->second.desktop,SubclassDesktopButtonProc,'CLSH');
if (it->second.bTimer)

View File

@@ -47,7 +47,7 @@ void EnableStartTooltip( bool bEnable );
struct TaskbarInfo
{
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; }
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; }
int taskbarId;
HWND taskBar;
HWND startButton; // either own start button or the win7 start button (depending on bReplaceButton)
@@ -55,6 +55,7 @@ struct TaskbarInfo
HWND rebar;
HWND taskList;
HWND chevron;
HWND news;
HWND desktop;
SIZE startButtonSize;
SIZE oldButtonSize;