- Correct RBN_CHILDSIZE rect value for CCS_VERT rebar.

- Do UpdateWindow only if doing redraws when doing layout.
This commit is contained in:
Guy L. Albertelli 2002-03-20 00:49:06 +00:00 committed by Alexandre Julliard
parent a558562409
commit 6db25faed2

View File

@ -111,6 +111,8 @@
* 21. Fix test in REBAR_Layout. * 21. Fix test in REBAR_Layout.
* rev 8d * rev 8d
* 22. Add support for WM_WINDOWPOSCHANGED to save new origin of window. * 22. Add support for WM_WINDOWPOSCHANGED to save new origin of window.
* 23. Correct RBN_CHILDSIZE rect value for CCS_VERT rebar.
* 24. Do UpdateWindow only if doing redraws.
* *
* *
* Still to do: * Still to do:
@ -1254,6 +1256,9 @@ REBAR_MoveChildWindows (REBAR_INFO *infoPtr, UINT start, UINT endplus)
rbcz.wID = lpBand->wID; rbcz.wID = lpBand->wID;
rbcz.rcChild = lpBand->rcChild; rbcz.rcChild = lpBand->rcChild;
rbcz.rcBand = lpBand->rcBand; rbcz.rcBand = lpBand->rcBand;
if (infoPtr->dwStyle & CCS_VERT)
rbcz.rcBand.top += lpBand->cxHeader;
else
rbcz.rcBand.left += lpBand->cxHeader; rbcz.rcBand.left += lpBand->cxHeader;
REBAR_Notify ((NMHDR *)&rbcz, infoPtr, RBN_CHILDSIZE); REBAR_Notify ((NMHDR *)&rbcz, infoPtr, RBN_CHILDSIZE);
if (!EqualRect (&lpBand->rcChild, &rbcz.rcChild)) { if (!EqualRect (&lpBand->rcChild, &rbcz.rcChild)) {
@ -1323,6 +1328,7 @@ REBAR_MoveChildWindows (REBAR_INFO *infoPtr, UINT start, UINT endplus)
if (!EndDeferWindowPos(deferpos)) if (!EndDeferWindowPos(deferpos))
ERR("EndDeferWindowPos returned NULL\n"); ERR("EndDeferWindowPos returned NULL\n");
if (infoPtr->DoRedraw)
UpdateWindow (infoPtr->hwndSelf); UpdateWindow (infoPtr->hwndSelf);
if (infoPtr->fStatus & NTF_HGHTCHG) { if (infoPtr->fStatus & NTF_HGHTCHG) {