rebar: In AutoSize get the window rc after REBAR_Layout if needed to respect the sizing changes made by REBAR_Layout.
This commit is contained in:
parent
af369106db
commit
178ef4495f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue