user32: Added support for WS_EX_RIGHT in the static control.
authorAlexandre Julliard <julliard@winehq.org>
Thu, 17 Apr 2008 17:26:43 +0000 (19:26 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 17 Apr 2008 17:26:43 +0000 (19:26 +0200)
dlls/user32/static.c

index df1987541302b865aa56ddef1036621214ad8fd1..ca83a765c3694bc5b317698af0d36c712f0d9b64 100644 (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;