Add support for painting SBS_SIZEBOX style properly.
This commit is contained in:
parent
98058eb14d
commit
bcca0cb395
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue