mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[BROWSEUI]
- CInternetToolbar: Fix resizing the top rebar. Works in windows (but not in ros). svn path=/trunk/; revision=72326
This commit is contained in:
parent
888d052418
commit
9fab725041
|
@ -646,9 +646,9 @@ HRESULT CInternetToolbar::ReserveBorderSpace(LONG maxHeight)
|
|||
if (FAILED_UNEXPECTEDLY(hResult))
|
||||
return hResult;
|
||||
|
||||
if (availableBorderSpace.top > maxHeight)
|
||||
if (maxHeight && availableBorderSpace.bottom - availableBorderSpace.top > maxHeight)
|
||||
{
|
||||
availableBorderSpace.top = maxHeight;
|
||||
availableBorderSpace.bottom = availableBorderSpace.top + maxHeight;
|
||||
}
|
||||
|
||||
return ResizeBorderDW(&availableBorderSpace, fSite, FALSE);
|
||||
|
@ -742,7 +742,7 @@ HRESULT CInternetToolbar::LockUnlockToolbars(bool locked)
|
|||
SendMessage(fMainReBar, RB_SETBANDINFOW, x, (LPARAM)&rebarBandInfo);
|
||||
}
|
||||
}
|
||||
hResult = ReserveBorderSpace();
|
||||
hResult = ReserveBorderSpace(0);
|
||||
|
||||
// TODO: refresh view menu?
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue