*sigh* More missing ListView API

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Unlike the better-designed tree control, the listview doesn't seem to have any functionality for returning whether or not an item is actually visible. Does anyone know what hoops I must jump through in order to workaround this limitation in what is obviously a seriously lacking API? Was the listview designed by interns? What's the deal? Why is the listview API so horrendous when the very-similar tree view control API has almost all of the functionality a programmer would expect from a professionally designed API

Word of advice from anyone planning on using a listview designed to use the listview API provided by Microsoft: Don't. Trust me, you'll save yourself a lot of time in the long run if you just design your own from scratch.
 
There's:

ListView_EnsureVisible()
ListView_GetItemRect()


--
remove underscores to email

Steve said:
Unlike the better-designed tree control, the listview doesn't seem to have
any functionality for returning whether or not an item is actually visible.
Does anyone know what hoops I must jump through in order to workaround this
limitation in what is obviously a seriously lacking API? Was the listview
designed by interns? What's the deal? Why is the listview API so
horrendous when the very-similar tree view control API has almost all of the
functionality a programmer would expect from a professionally designed API?
Word of advice from anyone planning on using a listview designed to use
the listview API provided by Microsoft: Don't. Trust me, you'll save
yourself a lot of time in the long run if you just design your own from
scratch.
 
ListView_EnsureVisible doesn't apply because I want to find out if an item is visible, not request that the item becomes visible

I started a workaround using ListView_GetItemRect which then compare against the rectangle of the window. Sure would be nice if Microsoft would have implemented this basic functionality into their listview instead of forcing programmers to reinvent the wheel.
 
Back
Top