Commit e8256f58 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Don't show the scrollbar if SetScrollinfo() is called with only the

SIF_DISABLENOSCROLL flag.
parent fc091b27
...@@ -1355,6 +1355,11 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar, ...@@ -1355,6 +1355,11 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
infoPtr->Page, infoPtr->CurVal, infoPtr->Page, infoPtr->CurVal,
infoPtr->MinVal, infoPtr->MaxVal ); 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 */ /* Check if the scrollbar should be hidden or disabled */
if (info->fMask & (SIF_RANGE | SIF_PAGE | SIF_DISABLENOSCROLL)) if (info->fMask & (SIF_RANGE | SIF_PAGE | SIF_DISABLENOSCROLL))
......
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