Module: wine Branch: master Commit: 5cc82b07b344d8c0cf11f1f6efa4a4c8e52f3df3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5cc82b07b344d8c0cf11f1f6ef...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Apr 17 19:26:43 2008 +0200
user32: Added support for WS_EX_RIGHT in the static control.
---
dlls/user32/static.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/static.c b/dlls/user32/static.c index df19875..ca83a76 100644 --- a/dlls/user32/static.c +++ b/dlls/user32/static.c @@ -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;