Skip to content
Snippets Groups Projects
Commit 28623622 authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard
Browse files

Fixed display bug in the static control.

parent 445c910e
No related branches found
No related tags found
No related merge requests found
......@@ -379,7 +379,11 @@ static void STATIC_PaintTextfn( WND *wndPtr, HDC hdc )
hBrush = SendMessageA( GetParent(wndPtr->hwndSelf), WM_CTLCOLORSTATIC,
hdc, wndPtr->hwndSelf );
if (!hBrush) hBrush = GetStockObject(WHITE_BRUSH);
FillRect( hdc, &rc, hBrush );
FillRect( hdc, &rc, hBrush );
if (!IsWindowEnabled(wndPtr->hwndSelf))
SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));
if (wndPtr->text) DrawTextA( hdc, wndPtr->text, -1, &rc, wFormat );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment