mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2025-02-22 13:20:21 +01:00
Weather: Fixed a bug that prevented resizing other deskbands (#1043)
This commit is contained in:
parent
d054477de7
commit
cebc2b555f
@ -358,19 +358,6 @@ BOOL TaskbarCenter_GetClientRectHook(HWND hWnd, LPRECT lpRect)
|
|||||||
bWeatherAlignment = FALSE;
|
bWeatherAlignment = FALSE;
|
||||||
}*/
|
}*/
|
||||||
REBARBANDINFOW rbi;
|
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));
|
ZeroMemory(&rbi, sizeof(REBARBANDINFOW));
|
||||||
rbi.cbSize = sizeof(REBARBANDINFOW);
|
rbi.cbSize = sizeof(REBARBANDINFOW);
|
||||||
rbi.fMask = RBBIM_CHILD;
|
rbi.fMask = RBBIM_CHILD;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user