MDI: CalcChildScroll
Filip Navara
xnavara at volny.cz
Sun Dec 5 07:49:57 CST 2004
Changelog:
Don't call SetScrollInfo with SB_BOTH bar type.
-------------- next part --------------
Index: windows/mdi.c
===================================================================
RCS file: /home/wine/wine/windows/mdi.c,v
retrieving revision 1.135
diff -u -r1.135 mdi.c
--- windows/mdi.c 22 Sep 2004 19:37:12 -0000 1.135
+++ windows/mdi.c 5 Dec 2004 02:40:35 -0000
@@ -1652,14 +1652,14 @@
info.nMin = childRect.left;
info.nMax = childRect.right - clientRect.right;
info.nPos = clientRect.left - childRect.left;
- SetScrollInfo(hwnd, scroll, &info, TRUE);
+ SetScrollInfo(hwnd, SB_HORZ, &info, TRUE);
if (scroll == SB_HORZ) break;
/* fall through */
case SB_VERT:
info.nMin = childRect.top;
info.nMax = childRect.bottom - clientRect.bottom;
info.nPos = clientRect.top - childRect.top;
- SetScrollInfo(hwnd, scroll, &info, TRUE);
+ SetScrollInfo(hwnd, SB_VERT, &info, TRUE);
break;
}
}
More information about the wine-patches
mailing list