Skip to content

Commit

Permalink
Apply taskbar customizations to News and interests
Browse files Browse the repository at this point in the history
Fixes #676
  • Loading branch information
ge0rdi committed Jan 4, 2025
1 parent faf79de commit f22f10c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion Src/StartMenu/StartMenuDLL/StartMenuDLL.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ 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)
HWND oldButton; // win8.1+ start button (child of taskBar)
HWND rebar;
HWND taskList;
HWND chevron;
HWND news;
HWND desktop;
SIZE startButtonSize;
SIZE oldButtonSize;
Expand Down

0 comments on commit f22f10c

Please sign in to comment.