mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
Fix vertical text alignment in static controls.
This commit is contained in:
parent
b904e25234
commit
925a38d9ad
@ -500,11 +500,11 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style )
|
||||
break;
|
||||
|
||||
case SS_SIMPLE:
|
||||
wFormat = DT_LEFT | DT_SINGLELINE | DT_VCENTER;
|
||||
wFormat = DT_LEFT | DT_SINGLELINE;
|
||||
break;
|
||||
|
||||
case SS_LEFTNOWORDWRAP:
|
||||
wFormat = DT_LEFT | DT_EXPANDTABS | DT_VCENTER;
|
||||
wFormat = DT_LEFT | DT_EXPANDTABS;
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -513,8 +513,8 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style )
|
||||
|
||||
if (style & SS_NOPREFIX)
|
||||
wFormat |= DT_NOPREFIX;
|
||||
if (style & SS_CENTERIMAGE)
|
||||
wFormat |= DT_VCENTER;
|
||||
if ((style & SS_CENTERIMAGE) && (style & SS_TYPEMASK) != SS_SIMPLE)
|
||||
wFormat |= DT_SINGLELINE | DT_VCENTER;
|
||||
|
||||
if ((hFont = (HFONT)GetWindowLongPtrW( hwnd, HFONT_GWL_OFFSET ))) SelectObject( hdc, hFont );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user