diff --git a/controls/scroll.c b/controls/scroll.c index fb31e74b75593ff5fb840bb74e9f7327bd2acae7..f824cdd3f8169a60135189ab5fb02cf99f189619 100644 --- a/controls/scroll.c +++ b/controls/scroll.c @@ -565,6 +565,7 @@ void SCROLL_DrawScrollBar( HWND32 hwnd, HDC32 hdc, INT32 nBar, if (!wndPtr || !infoPtr || ((nBar == SB_VERT) && !(wndPtr->dwStyle & WS_VSCROLL)) || ((nBar == SB_HORZ) && !(wndPtr->dwStyle & WS_HSCROLL))) return; + if (!WIN_IsWindowDrawable( wndPtr, FALSE )) return; vertical = SCROLL_GetScrollBarRect( hwnd, nBar, &rect, &arrowSize, &thumbSize, &thumbPos );