patch for fixing the tab change bug

Matthias Kupfer matthias.kupfer at informatik.tu-chemnitz.de
Thu Jul 1 17:20:47 CDT 2010


Hi,

after changing the selected tab, it's impossible to change to another tab with 
mouse. This patch fixes this issue, because the SetCurFocus changes selection 
(if conditions apply).

best regards

Matthias

-- 
Matthias Kupfer          phone +49 371 236 46 52
Wilhelm-Firl-Straße 21   mobile +49 160 859 43 54
09122 Chemnitz Germany
-------------- next part --------------
From 84274ca2ffbc0d478a7cc4cacac5ab755547c4f0 Mon Sep 17 00:00:00 2001
From: Matthias Kupfer <maku at butler.site>
Date: Fri, 2 Jul 2010 00:12:54 +0200
Subject: fix selection of tab via mouse

---
 dlls/comctl32/tab.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index c99153e..acf664c 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -683,7 +683,7 @@ TAB_LButtonDown (TAB_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
       if (pressed)
         TAB_DeselectAll (infoPtr, FALSE);
       else
-        TAB_SetCurSel(infoPtr, newItem);
+        TAB_SetCurFocus(infoPtr, newItem);
 
       TAB_SendSimpleNotify(infoPtr, TCN_SELCHANGE);
     }
-- 
1.5.6



More information about the wine-patches mailing list