rebar: In AutoSize get the window rc after REBAR_Layout if needed to respect the sizing changes made by REBAR_Layout.

oldstable
Aric Stewart 2008-03-17 18:00:53 +09:00 committed by Alexandre Julliard
parent af369106db
commit 178ef4495f
1 changed files with 1 additions and 1 deletions

View File

@ -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);