From 178ef4495fae7454cc3d314929855777b5a13455 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Mon, 17 Mar 2008 18:00:53 +0900 Subject: [PATCH] rebar: In AutoSize get the window rc after REBAR_Layout if needed to respect the sizing changes made by REBAR_Layout. --- dlls/comctl32/rebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index f1f823a17fe..7b1f00842c9 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -1516,9 +1516,9 @@ REBAR_AutoSize(REBAR_INFO *infoPtr, BOOL needsLayout) RECT rc, rcNew; NMRBAUTOSIZE autosize; - GetClientRect(infoPtr->hwndSelf, &rc); if (needsLayout) REBAR_Layout(infoPtr); + GetClientRect(infoPtr->hwndSelf, &rc); REBAR_SizeToHeight(infoPtr, get_rect_cy(infoPtr, &rc)); GetClientRect(infoPtr->hwndSelf, &rcNew);