Jump to content
Sign in to follow this  
dazza

Listview - scrolling down to the selected item

Recommended Posts

dazza

I'm being thick...

I've trawled through the UDFs and I can't find a way to scroll in a listview to show the selected item.

;)

Share this post


Link to post
Share on other sites
Tvern

Try the $LVS_SHOWSELALWAYS style to enable the behavior all the time, or _GUICtrlListView_EnsureVisible to scroll to the selected specified item when called.

Edit: It goes to the item with the specified index.

Edited by Tvern
  • Like 1

Share this post


Link to post
Share on other sites
dazza

Brilliant!

I will remember that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×