mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
Don't show the scrollbar if SetScrollinfo() is called with only the
SIF_DISABLENOSCROLL flag.
This commit is contained in:
parent
fc091b27ae
commit
e8256f589f
@ -1355,6 +1355,11 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
|
||||
infoPtr->Page, infoPtr->CurVal,
|
||||
infoPtr->MinVal, infoPtr->MaxVal );
|
||||
|
||||
/* don't change the scrollbar state if SetScrollInfo
|
||||
* is just called with SIF_DISABLENOSCROLL
|
||||
*/
|
||||
if(!(info->fMask & SIF_ALL)) goto done;
|
||||
|
||||
/* Check if the scrollbar should be hidden or disabled */
|
||||
|
||||
if (info->fMask & (SIF_RANGE | SIF_PAGE | SIF_DISABLENOSCROLL))
|
||||
|
Loading…
Reference in New Issue
Block a user