Andrey Gusev : user32: Add support for WS_EX_RIGHT style.

Alexandre Julliard julliard at winehq.org
Mon Dec 19 13:10:37 CST 2016


Module: wine
Branch: stable
Commit: 7a483350069fef3c6e7125f446bebed9db3cfd1b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7a483350069fef3c6e7125f446bebed9db3cfd1b

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Thu Oct 20 16:53:00 2016 +0300

user32: Add support for WS_EX_RIGHT style.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 535f1de80db22e5ba76af5cb69ae61524224eb31)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 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 13fc746..0968f10 100644
--- a/dlls/user32/button.c
+++ b/dlls/user32/button.c
@@ -859,6 +859,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;
 
@@ -882,7 +883,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)
     {
 	/* magic +4 is what CTL3D expects */
 




More information about the wine-cvs mailing list