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

SIF_DISABLENOSCROLL flag.
This commit is contained in:
Rein Klazes 2000-01-04 00:28:55 +00:00 committed by Alexandre Julliard
parent fc091b27ae
commit e8256f589f

View File

@ -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))