comctl32:tab: Don't arrange tabs if there is only one line
Vitaliy Margolen
wine-patch at kievinfo.com
Mon Oct 3 11:17:29 CDT 2005
If there is only one line of tabs don't arrange then evenly even when
TCS_MULTILINE is set and TCS_RAGGEDRIGHT is not.
Vitaliy Margolen
changelog:
comctl32
- Don't arrange tabs if there is only one line
-------------- next part --------------
Index: dlls/comctl32/tab.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/tab.c,v
retrieving revision 1.118
diff -u -p -r1.118 tab.c
--- dlls/comctl32/tab.c 30 Aug 2005 10:07:17 -0000 1.118
+++ dlls/comctl32/tab.c 3 Oct 2005 16:13:38 -0000
@@ -1275,7 +1275,10 @@ static void TAB_SetItemBounds (TAB_INFO
infoPtr->uNumRows = curItemRowCount;
/* Arrange all tabs evenly if style says so */
- if (!(lStyle & TCS_RAGGEDRIGHT) && ((lStyle & TCS_MULTILINE) || (lStyle & TCS_VERTICAL)) && (infoPtr->uNumItem > 0))
+ if (!(lStyle & TCS_RAGGEDRIGHT) &&
+ ((lStyle & TCS_MULTILINE) || (lStyle & TCS_VERTICAL)) &&
+ (infoPtr->uNumItem > 0) &&
+ (infoPtr->uNumRows > 1))
{
INT tabPerRow,remTab,iRow;
UINT iItm;
More information about the wine-patches
mailing list