File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1222,8 +1222,14 @@ static void UpdateStartButtonPosition(const TaskbarInfo* taskBar, const WINDOWPO
12221222 RecreateStartButton (taskBar->taskbarId );
12231223
12241224 RECT rcTask;
1225+ GetWindowRect (taskBar->taskBar , &rcTask);
1226+ if (RECT rc; GetWindowRgnBox (taskBar->taskBar , &rc) != ERROR)
1227+ {
1228+ MapWindowPoints (taskBar->taskBar , NULL , (POINT*)&rc, 2 );
1229+ rcTask = rc;
1230+ }
12251231 MONITORINFO info;
1226- UINT uEdge = GetTaskbarPosition (taskBar->taskBar , &info, NULL , &rcTask );
1232+ UINT uEdge = GetTaskbarPosition (taskBar->taskBar , &info, NULL , NULL );
12271233 DWORD buttonFlags = SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSIZE;
12281234 if (IsWindowVisible (taskBar->taskBar ))
12291235 buttonFlags |= SWP_SHOWWINDOW;
You can’t perform that action at this time.
0 commit comments