[Bug 9435] MDI child window outside main window gives scrollbars

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Aug 24 09:45:39 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=9435





--- Comment #3 from Peter Åstrand <peter at cendio.se>  2007-08-24 09:45:38 ---
I've determined that mdi.c calls SetScrollInfo, which I believe is wrong: This
causes the scroll bar to be displayed, even though the MDI Client window was
created without WS_VSCROLL/WS_HSCROLL. 

I've not determined how to fix mdi.c, though. I think the code paths
surrounding this is very strange, especially wrt the sbRecalc variable. In
several places, you will find SB_BOTH+1. The result is 4, but there is no
corresponding SB_xxx #define for 4. Also, the switch in CalcChildScroll does
not handle a value of 4.  

This call also looks very strange:

CalcChildScroll(hwnd, ci->sbRecalc-1);

What's the -1 doing there?


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the wine-bugs mailing list