Don't draw scrollbars if their client rectangle is empty.

This commit is contained in:
Chris Morgan 2000-11-26 22:36:53 +00:00 committed by Alexandre Julliard
parent 3c379ddc6b
commit cbbc7c3d60
1 changed files with 4 additions and 0 deletions

View File

@ -790,6 +790,10 @@ void SCROLL_DrawScrollBar( HWND hwnd, HDC hdc, INT nBar,
vertical = SCROLL_GetScrollBarRect( hwnd, nBar, &rect,
&arrowSize, &thumbSize, &thumbPos );
/* do not draw if the scrollbar rectangle is empty */
if(IsRectEmpty(&rect))
goto END;
if (Save_SCROLL_MovingThumb &&
(SCROLL_TrackingWin == hwnd) &&
(SCROLL_TrackingBar == nBar))