user32: Add WS_EX_RIGHT style for checkboxes

Andrey Gusev andrey.goosev at gmail.com
Sun Nov 22 08:38:07 CST 2015


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151122/ccb5035a/attachment-0001.html>
-------------- next part --------------
From ec3a56e4a067731385357603cc04b0362d15d478 Mon Sep 17 00:00:00 2001
Message-Id: <ec3a56e4a067731385357603cc04b0362d15d478.1448202945.git.andrey.goosev at gmail.com>
From: Andrey Gusev <andrey.goosev at gmail.com>
Date: Sun, 22 Nov 2015 16:35:27 +0200
Subject: [PATCH] user32: Add WS_EX_RIGHT style for checkboxes

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
 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 890d154..663d171 100644
--- a/dlls/user32/button.c
+++ b/dlls/user32/button.c
@@ -850,6 +850,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;
 
@@ -873,7 +874,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 */
 
-- 
2.4.3



More information about the wine-patches mailing list