richedit: (1/4) Tests for visibility behavior of richedit scrollbars, with todo_wine
Alex Villacís Lasso
a_villacis at palosanto.com
Mon Jul 21 12:52:23 CDT 2008
Some applications have never heard of ES_DISABLENOSCROLL and attempt to
force scrollbars to be always shown (with ShowScrollBar() or similar)
when otherwise richedit would hide them. If richedit attempts to wrestle
control back, a recursive loop of requests can result if app overrides
WM_SIZE behavior. Apparently native never reads the scrollbar state, and
operates from some sort of internal state, so that scrollbars can be
modified externally without native trying to wrestle back control. This
is confirmed by attached tests. An exception: EM_SCROLL will restore
visibility to a scrollbar that was forcibly hidden.
This is a rework of an earlier patch, split into four pieces for easier
review. I have tested this on WinXP-SP2 but would like it to be tested
in other versions as well.
* Tests for forced (in)visibility of richedit scrollbars, with todo_wine
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080721/10a19b1b/attachment-0001.bin
More information about the wine-patches