Add support for painting SBS_SIZEBOX style properly.
diff --git a/controls/scroll.c b/controls/scroll.c
index be40ab6..efed4c2 100644
--- a/controls/scroll.c
+++ b/controls/scroll.c
@@ -1207,11 +1207,6 @@
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 @@
{
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;