From 1140838644ec777efce7bdbd81b74dce099face1 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 19 Dec 2016 16:36:12 +0000 Subject: [PATCH] [User32] - Patch by Andrey Gusev : Add support for WS_EX_RIGHT style. svn path=/trunk/; revision=73469 --- reactos/win32ss/user/user32/controls/button.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/win32ss/user/user32/controls/button.c b/reactos/win32ss/user/user32/controls/button.c index 9b7ee9ea46c..29cbbd45f20 100644 --- a/reactos/win32ss/user/user32/controls/button.c +++ b/reactos/win32ss/user/user32/controls/button.c @@ -1029,6 +1029,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action ) HFONT hFont; LONG state = get_button_state( hwnd ); LONG style = GetWindowLongPtrW( hwnd, GWL_STYLE ); + LONG ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE ); HWND parent; HRGN hrgn; @@ -1061,7 +1062,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action ) #endif hrgn = set_control_clipping( hDC, &client ); - if (style & BS_LEFTTEXT) + if (style & BS_LEFTTEXT || ex_style & WS_EX_RIGHT) { /* magic +4 is what CTL3D expects */