1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-02-20 20:41:26 +01:00

Weather: Fixed a bug that prevented resizing other deskbands (#1043)

This commit is contained in:
Valentin Radu 2022-03-10 08:01:12 +02:00
parent d054477de7
commit cebc2b555f

View File

@ -358,19 +358,6 @@ BOOL TaskbarCenter_GetClientRectHook(HWND hWnd, LPRECT lpRect)
bWeatherAlignment = FALSE;
}*/
REBARBANDINFOW rbi;
int k = SendMessageW(hReBarWindow32, RB_GETBANDCOUNT, 0, 0);
for (int i = 0; i < k; ++i)
{
ZeroMemory(&rbi, sizeof(REBARBANDINFOW));
rbi.cbSize = sizeof(REBARBANDINFOW);
rbi.fMask = RBBIM_CHILD;
SendMessageW(hReBarWindow32, RB_GETBANDINFOW, i, &rbi);
if (rbi.hwndChild && GetClassWord(rbi.hwndChild, GCW_ATOM) == RegisterWindowMessageW(L"MSTaskSwWClass"))
{
SendMessageW(hReBarWindow32, RB_MAXIMIZEBAND, i, 0);
break;
}
}
ZeroMemory(&rbi, sizeof(REBARBANDINFOW));
rbi.cbSize = sizeof(REBARBANDINFOW);
rbi.fMask = RBBIM_CHILD;