user32: Added support for WS_EX_RIGHT in the static control.

This commit is contained in:
Alexandre Julliard 2008-04-17 19:26:43 +02:00
parent f4136deecb
commit 5cc82b07b3
1 changed files with 3 additions and 0 deletions

View File

@ -688,6 +688,9 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style )
return;
}
if (GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_RIGHT)
wFormat = DT_RIGHT | (wFormat & ~(DT_LEFT | DT_CENTER));
if (style & SS_NOPREFIX)
wFormat |= DT_NOPREFIX;