Author: gedmurphy
Date: Tue Apr 11 23:09:26 2006
New Revision: 21551
URL:
http://svn.reactos.ru/svn/reactos?rev=21551&view=rev
Log:
add Thomas' rebar fix back. I need this fix for imagesoft.
Modified:
trunk/reactos/dll/win32/comctl32/rebar.c
Modified: trunk/reactos/dll/win32/comctl32/rebar.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/comctl32/rebar.c?…
==============================================================================
--- trunk/reactos/dll/win32/comctl32/rebar.c (original)
+++ trunk/reactos/dll/win32/comctl32/rebar.c Tue Apr 11 23:09:26 2006
@@ -1918,7 +1918,7 @@
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;
@@ -1927,7 +1927,7 @@
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;