Commit bcca0cb3 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Add support for painting SBS_SIZEBOX style properly.

parent 98058eb1
...@@ -1207,11 +1207,6 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam, ...@@ -1207,11 +1207,6 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam,
infoPtr->flags = ESB_DISABLE_BOTH; 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_VERT)
{ {
if (lpCreat->style & SBS_LEFTALIGN) if (lpCreat->style & SBS_LEFTALIGN)
...@@ -1332,6 +1327,9 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam, ...@@ -1332,6 +1327,9 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam,
{ {
PAINTSTRUCT ps; PAINTSTRUCT ps;
HDC hdc = BeginPaint( hwnd, &ps ); HDC hdc = BeginPaint( hwnd, &ps );
if (GetWindowLongW( hwnd, GWL_STYLE ) & SBS_SIZEBOX)
FillRect( hdc, &ps.rcPaint, GetSysColorBrush(COLOR_SCROLLBAR) );
else
SCROLL_DrawScrollBar( hwnd, hdc, SB_CTL, TRUE, TRUE ); SCROLL_DrawScrollBar( hwnd, hdc, SB_CTL, TRUE, TRUE );
EndPaint( hwnd, &ps ); EndPaint( hwnd, &ps );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment