mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
- Setting the scroll range with the "bRedraw" flag set to true on a
non-control scrollbar resulted in the scrollbar being drawn over the whole window area. - If you don't set WS_HSCROLL/WS_VSCROLL on window creation, setting a scroll range does nothing. Setting the scroll range to a non-zero range should cause scroll bars to be displayed. Setting the range to a zero range should cause the relevant scroll bar to be hidden.
This commit is contained in:
parent
5b1a13b281
commit
eed4411f8d
@ -1694,10 +1694,13 @@ BOOL bRedraw /* [in] Should scrollbar be redrawn afterwards ? */)
|
||||
if (nBar == SB_CTL)
|
||||
ret = SendMessageW(hwnd, SBM_SETRANGE, minVal, maxVal);
|
||||
else
|
||||
{
|
||||
ret = SCROLL_SetScrollRange(hwnd, nBar, minVal, maxVal);
|
||||
ShowScrollBar(hwnd, nBar, minVal != maxVal);
|
||||
}
|
||||
|
||||
if (bRedraw)
|
||||
SCROLL_RefreshScrollBar( hwnd, SB_CTL, TRUE, TRUE );
|
||||
SCROLL_RefreshScrollBar( hwnd, nBar, TRUE, TRUE );
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user