Skip to content

Commit 1fcb663

Browse files
committed
Make sure tray buttons are properly positioned when custom start button was created
Fixes #1232
1 parent d0cecdb commit 1fcb663

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,6 +3110,12 @@ static void RecreateStartButton( size_t taskbarId )
31103110
RECT rcTask;
31113111
GetWindowRect(taskBar.taskBar,&rcTask);
31123112
PostMessage(taskBar.taskBar,WM_SIZE,SIZE_RESTORED,MAKELONG(rcTask.right-rcTask.left,rcTask.bottom-rcTask.top));
3113+
for (auto btn : taskBar.trayButtons)
3114+
{
3115+
RECT rc;
3116+
GetWindowRect(btn,&rc);
3117+
SetWindowPos(btn,HWND_TOP,rc.left,rc.top,0,0,SWP_NOSIZE|SWP_NOACTIVATE|SWP_NOZORDER);
3118+
}
31133119
}
31143120
}
31153121

0 commit comments

Comments
 (0)