AbiWord and RBN_HEIGHTCHANGE
Filip Navara
xnavara at volny.cz
Tue Apr 13 14:27:48 CDT 2004
Hi,
this patch fixes the issue with AbiWord document window not resized
properly after resizing the rebar control.
- Filip
ChangeLog:
* dlls/comctl32/rebar.c: Filip Navara <xnavara at volny.cz>
Force resize before calling RBN_HEIGHTCHANGE notification.
-------------- next part --------------
--- rebar.c Tue Mar 23 23:20:16 2004
+++ rebar.c Tue Apr 13 19:17:54 2004
@@ -1186,11 +1186,6 @@
INT xedge = GetSystemMetrics(SM_CXEDGE);
INT yedge = GetSystemMetrics(SM_CYEDGE);
- /* TEST TEST TEST */
- GetWindowRect (infoPtr->hwndSelf, &rc);
- /* END TEST END TEST END TEST */
-
-
GetClientRect (infoPtr->hwndSelf, &rc);
TRACE( " old [%ld x %ld], new [%ld x %ld], client [%ld x %ld]\n",
@@ -1387,6 +1382,12 @@
if (infoPtr->fStatus & NTF_HGHTCHG) {
infoPtr->fStatus &= ~NTF_HGHTCHG;
+ /*
+ * We need to force a resize here, because some applications
+ * try to get the rebar size during processing of the
+ * RBN_HEIGHTCHANGE notification.
+ */
+ REBAR_ForceResize (infoPtr);
REBAR_Notify (&heightchange, infoPtr, RBN_HEIGHTCHANGE);
}
More information about the wine-patches
mailing list