I'm rolling my own with a listbox. The items in the list box are of varying
sizes and I'm hit checking when the litbox is checked to see what portion of
an item the user has clicked on.
Mostly it works fine. The only issue I'm running into is when the item that
th users clicks is at the bottom of the listbox and is not completely
displayed. When the user clicks there the listbox autoscrolls the full item
into view. That would be great except for the fact that the mousedown event
report where the user clicked and doesn't transpose it to account for the
fact that the list has been scrolled. Net effect is that I end up detecting
the wrong item.
I have a way to crrect it with the exception of the last item. Seems that
if there is any white space after the last item in the list (due to variable
size ownerdraw) the listbox reports that you clicked the last item even if
you clicked in the white space.
How can you tell when a list has been (or is being) scrolled? Thanks.
Jerry