[Bug 20695] Cannot scroll documents being compared in winmerge

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Feb 9 14:21:12 CST 2012


Andrew Eikum <aeikum at codeweavers.com> changed:

           What    |Removed                     |Added
                 CC|                            |aeikum at codeweavers.com

--- Comment #13 from Andrew Eikum <aeikum at codeweavers.com> 2012-02-09 14:21:12 CST ---
The problem here is SetScrollInfo can set the scrollbar's flags, but doesn't
En/Disable the scrollbar itself. So the flags and actual window state are not
in sync and we end up with this sequence:

  infoPtr->flags = ESB_DISABLE_BOTH

  infoPtr->flags = ESB_ENABLE_BOTH

  infoPtr->flags == ESB_ENABLE_BOTH => return

So some possible fixes:
*) SetScrollInfo() is setting the flags incorrectly, or
*) EnableScrollBar() should use some other method to determine if
EnableWindow() needs to be called, or
*) SetScrollInfo() should En/Disable the window to keep the flags in sync

I'll keep looking, but thought maybe something would be obvious to Nikolay.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list