Fixed display bug in the static control.
This commit is contained in:
parent
445c910e89
commit
2862362259
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue