comctl32: rebar: Invalidate children in CalcHorz/VertBand.

This commit is contained in:
Mikołaj Zalewski 2008-02-26 21:16:13 +01:00 committed by Alexandre Julliard
parent 480c0d7215
commit bc0fe1bd8e
1 changed files with 2 additions and 1 deletions

View File

@ -796,6 +796,7 @@ REBAR_CalcHorzBand (const REBAR_INFO *infoPtr, UINT rstart, UINT rend)
work.right += SEP_WIDTH; work.right += SEP_WIDTH;
work.bottom += SEP_WIDTH; work.bottom += SEP_WIDTH;
InvalidateRect(infoPtr->hwndSelf, &work, TRUE); 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.bottom += SEP_WIDTH;
work.right += SEP_WIDTH; work.right += SEP_WIDTH;
InvalidateRect(infoPtr->hwndSelf, &work, TRUE); 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)); TRACE("[%s]\n", wine_dbgstr_rect(lpRect));
REBAR_SizeToHeight(infoPtr, get_rect_cy(infoPtr, lpRect)); REBAR_SizeToHeight(infoPtr, get_rect_cy(infoPtr, lpRect));
InvalidateRect (infoPtr->hwndSelf, NULL, TRUE);
return TRUE; return TRUE;
} }