From: Andrey Gusev Subject: user32: Add support for WS_EX_RIGHT style. Message-Id: Date: Thu, 20 Oct 2016 16:54:16 +0300 From 59fcce32fba9c1451d4e9d27c571f75ecc154f75 Mon Sep 17 00:00:00 2001 Message-Id: <59fcce32fba9c1451d4e9d27c571f75ecc154f75.1476971596.git.andrey.goosev@gmail.com> From: Andrey Gusev Date: Thu, 20 Oct 2016 16:53:00 +0300 Subject: [PATCH] user32: Add support for WS_EX_RIGHT style. Signed-off-by: Andrey Gusev --- dlls/user32/button.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/user32/button.c b/dlls/user32/button.c index 166b1a4..e85e30d 100644 --- a/dlls/user32/button.c +++ b/dlls/user32/button.c @@ -844,6 +844,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action ) HFONT hFont; LONG state = get_button_state( hwnd ); LONG style = GetWindowLongW( hwnd, GWL_STYLE ); + LONG ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE ); HWND parent; HRGN hrgn; @@ -872,7 +873,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action ) (WPARAM)hDC, (LPARAM)hwnd ); hrgn = set_control_clipping( hDC, &client ); - if (style & BS_LEFTTEXT) + if (style & BS_LEFTTEXT || ex_style & WS_EX_RIGHT) { rtext.right -= checkBoxWidth + text_offset; rbox.left = rbox.right - checkBoxWidth; -- 2.7.4