Thomas Weidenmueller : comctl32: Rebar size fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Mar 28 04:44:34 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 870d37ff607ec640efd49bf22e2453d9b6f443db
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=870d37ff607ec640efd49bf22e2453d9b6f443db
Author: Thomas Weidenmueller <wine-patches at reactsoft.com>
Date: Sun Mar 26 13:30:03 2006 +0200
comctl32: Rebar size fix.
Rebars without any bands should have a height/width of 0.
---
dlls/comctl32/rebar.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index 81633d6..1eb76e1 100644
--- a/dlls/comctl32/rebar.c
+++ b/dlls/comctl32/rebar.c
@@ -1920,7 +1920,7 @@ REBAR_Layout (REBAR_INFO *infoPtr, LPREC
y = clientcy;
}
if (infoPtr->dwStyle & CCS_VERT) {
- if( x < REBAR_MINSIZE )
+ if( infoPtr->uNumBands != 0 && x < REBAR_MINSIZE )
x = REBAR_MINSIZE;
infoPtr->calcSize.cx = x;
infoPtr->calcSize.cy = clientcy;
@@ -1929,7 +1929,7 @@ REBAR_Layout (REBAR_INFO *infoPtr, LPREC
if (notify && (x != origheight)) infoPtr->fStatus |= NTF_HGHTCHG;
}
else {
- if( y < REBAR_MINSIZE )
+ if( infoPtr->uNumBands != 0 && y < REBAR_MINSIZE )
y = REBAR_MINSIZE;
infoPtr->calcSize.cx = clientcx;
infoPtr->calcSize.cy = y;
More information about the wine-cvs
mailing list