Add support for painting SBS_SIZEBOX style properly.

This commit is contained in:
Robert Shearman 2002-11-25 01:09:24 +00:00 committed by Alexandre Julliard
parent 98058eb14d
commit bcca0cb395
1 changed files with 4 additions and 6 deletions

View File

@ -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,6 +1327,9 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam,
{
PAINTSTRUCT 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 );
EndPaint( hwnd, &ps );
}