mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-11 17:37:22 +10:00
Make sure tray buttons are properly positioned when custom start button was created
Fixes #1232
This commit is contained in:
@@ -3110,6 +3110,12 @@ static void RecreateStartButton( size_t taskbarId )
|
||||
RECT rcTask;
|
||||
GetWindowRect(taskBar.taskBar,&rcTask);
|
||||
PostMessage(taskBar.taskBar,WM_SIZE,SIZE_RESTORED,MAKELONG(rcTask.right-rcTask.left,rcTask.bottom-rcTask.top));
|
||||
for (auto btn : taskBar.trayButtons)
|
||||
{
|
||||
RECT rc;
|
||||
GetWindowRect(btn,&rc);
|
||||
SetWindowPos(btn,HWND_TOP,rc.left,rc.top,0,0,SWP_NOSIZE|SWP_NOACTIVATE|SWP_NOZORDER);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user