Mikołaj Zalewski : comctl32: rebar: Invalidate children in CalcHorz/VertBand.

Alexandre Julliard julliard at winehq.org
Wed Feb 27 08:03:19 CST 2008


Module: wine
Branch: master
Commit: bc0fe1bd8e650fe6491a2f4001cb3e4216eb961e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bc0fe1bd8e650fe6491a2f4001cb3e4216eb961e

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Tue Feb 26 21:16:13 2008 +0100

comctl32: rebar: Invalidate children in CalcHorz/VertBand.

---

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

diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index cd2861c..8c14336 100644
--- a/dlls/comctl32/rebar.c
+++ b/dlls/comctl32/rebar.c
@@ -796,6 +796,7 @@ REBAR_CalcHorzBand (const REBAR_INFO *infoPtr, UINT rstart, UINT rend)
 	  work.right += SEP_WIDTH;
 	  work.bottom += SEP_WIDTH;
 	  InvalidateRect(infoPtr->hwndSelf, &work, TRUE);
+	  InvalidateRect(lpBand->hwndChild, NULL, TRUE);
       }
 
     }
@@ -916,6 +917,7 @@ REBAR_CalcVertBand (const REBAR_INFO *infoPtr, UINT rstart, UINT rend)
 	    work.bottom += SEP_WIDTH;
 	    work.right += SEP_WIDTH;
 	    InvalidateRect(infoPtr->hwndSelf, &work, TRUE);
+	    InvalidateRect(lpBand->hwndChild, NULL, TRUE);
 	}
 
     }
@@ -2788,7 +2790,6 @@ REBAR_SizeToRect (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
 
     TRACE("[%s]\n", wine_dbgstr_rect(lpRect));
     REBAR_SizeToHeight(infoPtr, get_rect_cy(infoPtr, lpRect));
-    InvalidateRect (infoPtr->hwndSelf, NULL, TRUE);
     return TRUE;
 }
 




More information about the wine-cvs mailing list