mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Background of SS_SIMPLE static control is not filled (unless it has
SS_NOPREFIX too).
This commit is contained in:
parent
c895908824
commit
0e805aa358
1 changed files with 7 additions and 4 deletions
|
@ -409,11 +409,14 @@ static void STATIC_PaintTextfn( WND *wndPtr, HDC hdc )
|
|||
wFormat |= DT_NOPREFIX;
|
||||
|
||||
if (infoPtr->hFont) SelectObject( hdc, infoPtr->hFont );
|
||||
|
||||
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))
|
||||
SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));
|
||||
|
||||
|
|
Loading…
Reference in a new issue