Aric Stewart : rebar: In AutoSize get the window rc after REBAR_Layout if needed to respect the sizing changes made by REBAR_Layout .
Alexandre Julliard
julliard at winehq.org
Tue Mar 18 07:44:57 CDT 2008
Module: wine
Branch: master
Commit: 178ef4495fae7454cc3d314929855777b5a13455
URL: http://source.winehq.org/git/wine.git/?a=commit;h=178ef4495fae7454cc3d314929855777b5a13455
Author: Aric Stewart <aric at codeweavers.com>
Date: Mon Mar 17 18:00:53 2008 +0900
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index f1f823a..7b1f008 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);
More information about the wine-cvs
mailing list