Commit eed4411f authored by Troy Rollo's avatar Troy Rollo Committed by Alexandre Julliard

- 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.
parent 5b1a13b2
...@@ -1694,10 +1694,13 @@ BOOL bRedraw /* [in] Should scrollbar be redrawn afterwards ? */) ...@@ -1694,10 +1694,13 @@ BOOL bRedraw /* [in] Should scrollbar be redrawn afterwards ? */)
if (nBar == SB_CTL) if (nBar == SB_CTL)
ret = SendMessageW(hwnd, SBM_SETRANGE, minVal, maxVal); ret = SendMessageW(hwnd, SBM_SETRANGE, minVal, maxVal);
else else
{
ret = SCROLL_SetScrollRange(hwnd, nBar, minVal, maxVal); ret = SCROLL_SetScrollRange(hwnd, nBar, minVal, maxVal);
ShowScrollBar(hwnd, nBar, minVal != maxVal);
}
if (bRedraw) if (bRedraw)
SCROLL_RefreshScrollBar( hwnd, SB_CTL, TRUE, TRUE ); SCROLL_RefreshScrollBar( hwnd, nBar, TRUE, TRUE );
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment