- 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:
Troy Rollo 2004-07-08 20:15:46 +00:00 committed by Alexandre Julliard
parent 5b1a13b281
commit eed4411f8d

View File

@ -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;
}