Fixed display bug in the static control.

This commit is contained in:
Francis Beaudet 1999-09-20 18:28:08 +00:00 committed by Alexandre Julliard
parent 445c910e89
commit 2862362259
1 changed files with 5 additions and 1 deletions

View File

@ -380,6 +380,10 @@ static void STATIC_PaintTextfn( WND *wndPtr, HDC hdc )
hdc, wndPtr->hwndSelf );
if (!hBrush) hBrush = GetStockObject(WHITE_BRUSH);
FillRect( hdc, &rc, hBrush );
if (!IsWindowEnabled(wndPtr->hwndSelf))
SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));
if (wndPtr->text) DrawTextA( hdc, wndPtr->text, -1, &rc, wFormat );
}