comctl32: Fix selection of tab via mouse.

This commit is contained in:
Matthias Kupfer 2010-07-02 00:12:54 +02:00 committed by Alexandre Julliard
parent 044669e709
commit 6018b88913

View File

@ -683,7 +683,7 @@ TAB_LButtonDown (TAB_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
if (pressed) if (pressed)
TAB_DeselectAll (infoPtr, FALSE); TAB_DeselectAll (infoPtr, FALSE);
else else
TAB_SetCurSel(infoPtr, newItem); TAB_SetCurFocus(infoPtr, newItem);
TAB_SendSimpleNotify(infoPtr, TCN_SELCHANGE); TAB_SendSimpleNotify(infoPtr, TCN_SELCHANGE);
} }