user32: Add additional tests for scroll state, make them pass under Wine
Alex Villacís Lasso
a_villacis at palosanto.com
Mon Jun 30 15:34:33 CDT 2008
This patch adds a few tests for scrollbar behavior in Windows. It shows
that if the window was created with at least WS_VSCROLL or WS_HSCROLL
styles, WinXP returns default information for scrollbar range, but Win98
returns an error, until first initialized. This error does not change if
styles are set or cleared before initializing ranges. On both versions,
setting either scrollbar range automatically initializes both if
required (Wine still returned error for the other scrollbar - fix
included). I have tried to test this on Win98 and WinXP-SP2, but maybe
other versions are different. Could you please test this patch? Also, is
it OK to tell apart Win9x vs. WinXP behavior in the way it is done in
this patch? Once either behavior is identified, it is consistent on all
future tests, as shown by the tests. Wine fixed to implement Win98 behavior.
Changelog:
* Document and test differences between WinXP and Win98 scrollbar behavior
* Make tests pass under Wine (Win98 behavior)
--
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-Add-additional-tests-for-scroll-state-make.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080630/6e388809/attachment.bin
More information about the wine-patches
mailing list