Dmitry Timoshkov : user32: Fix groupbox rectangle calculation in the button's WM_SETTEXT handler.

Alexandre Julliard julliard at winehq.org
Thu Apr 20 12:35:11 CDT 2017


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Feb  6 14:23:42 2017 +0300

user32: Fix groupbox rectangle calculation in the button's WM_SETTEXT handler.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit d639d3bba011bcae0134705bde5a47bf3934f166)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/user32/button.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/user32/button.c b/dlls/user32/button.c
index cc70e37..e5cee12 100644
--- a/dlls/user32/button.c
+++ b/dlls/user32/button.c
@@ -394,6 +394,9 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
 
             GetClientRect(hWnd, &client);
             rc = client;
+            /* FIXME: check other BS_* handlers */
+            if (btn_type == BS_GROUPBOX)
+                InflateRect(&rc, -7, 1); /* GB_Paint does this */
             BUTTON_CalcLabelRect(hWnd, hdc, &rc);
             /* Clip by client rect bounds */
             if (rc.right > client.right) rc.right = client.right;




More information about the wine-cvs mailing list