Commit 0e805aa3 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Background of SS_SIMPLE static control is not filled (unless it has

SS_NOPREFIX too).
parent c8959088
...@@ -409,11 +409,14 @@ static void STATIC_PaintTextfn( WND *wndPtr, HDC hdc ) ...@@ -409,11 +409,14 @@ static void STATIC_PaintTextfn( WND *wndPtr, HDC hdc )
wFormat |= DT_NOPREFIX; wFormat |= DT_NOPREFIX;
if (infoPtr->hFont) SelectObject( hdc, infoPtr->hFont ); if (infoPtr->hFont) SelectObject( hdc, infoPtr->hFont );
hBrush = SendMessageA( GetParent(wndPtr->hwndSelf), WM_CTLCOLORSTATIC,
hdc, wndPtr->hwndSelf );
if (!hBrush) hBrush = GetStockObject(WHITE_BRUSH);
FillRect( hdc, &rc, hBrush );
if ((style & SS_NOPREFIX) || ((style & SS_TYPEMASK) != SS_SIMPLE))
{
hBrush = SendMessageA( GetParent(wndPtr->hwndSelf), WM_CTLCOLORSTATIC,
hdc, wndPtr->hwndSelf );
if (!hBrush) hBrush = GetStockObject(WHITE_BRUSH);
FillRect( hdc, &rc, hBrush );
}
if (!IsWindowEnabled(wndPtr->hwndSelf)) if (!IsWindowEnabled(wndPtr->hwndSelf))
SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT)); SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));
......
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