diff --git a/controls/static.c b/controls/static.c index cbe89f7e6bb2b6063b2532bc9729329d7c22ebf8..b198fbe11489f23ef1bcf7e78bf4c1be2db1ea31 100644 --- a/controls/static.c +++ b/controls/static.c @@ -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 ); }