comctl32: rebar: Don't assume the first band is visible.
authorMikołaj Zalewski <mikolaj@zalewski.pl>
Wed, 27 Feb 2008 17:20:12 +0000 (18:20 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 28 Feb 2008 09:45:52 +0000 (10:45 +0100)
commit23b0085a25a1b2872f5c27a4379c3eb5a0d8db38
tree96973fa8e8547b17cc5364bbe937274595fabd54
parent4d0bad870cc70ba34e2db95f4df44d3f829c84e8
comctl32: rebar: Don't assume the first band is visible.

The code required that a row started with a visible band. However this
was not met if the first band of the rebar was hidden. The new code
should fix this case. I've also made it explicit in the comments that
the functions require the first band to be visible and renamed
next_band, prev_band to next_visible and prev_visible to make it clear
what these functions do.
dlls/comctl32/rebar.c