From bcca0cb39506987df4b5275791e39d92d5576af7 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Mon, 25 Nov 2002 01:09:24 +0000 Subject: [PATCH] Add support for painting SBS_SIZEBOX style properly. --- controls/scroll.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/controls/scroll.c b/controls/scroll.c index be40ab6736d..efed4c24233 100644 --- a/controls/scroll.c +++ b/controls/scroll.c @@ -1207,11 +1207,6 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam, infoPtr->flags = ESB_DISABLE_BOTH; } - if (lpCreat->style & SBS_SIZEBOX) - { - FIXME("Unimplemented style SBS_SIZEBOX.\n" ); - return 0; - } if (lpCreat->style & SBS_VERT) { if (lpCreat->style & SBS_LEFTALIGN) @@ -1332,7 +1327,10 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam, { PAINTSTRUCT ps; HDC hdc = BeginPaint( hwnd, &ps ); - SCROLL_DrawScrollBar( hwnd, hdc, SB_CTL, TRUE, TRUE ); + if (GetWindowLongW( hwnd, GWL_STYLE ) & SBS_SIZEBOX) + FillRect( hdc, &ps.rcPaint, GetSysColorBrush(COLOR_SCROLLBAR) ); + else + SCROLL_DrawScrollBar( hwnd, hdc, SB_CTL, TRUE, TRUE ); EndPaint( hwnd, &ps ); } break;