I can't quite find the solution to this.
I have a 2 column listview that can scroll. Right now, I just care about Horiz scroll.
I get the scroll bar position with
control handle cbhndl, ListviewID to hCtl
pos= GetScrollPos(hctl,%SB_HORZ)
and later
SetScrollPos(hCTL,%SB_HORZ,pos,-1)
But that only sets the scroll bar
Adding
ListView_Scroll (hCTL,pos,0) moves the listview, but this is in pixels and what is saved with GetScroll pos is not. Is there a way to get the ListView scroll position?
I have a 2 column listview that can scroll. Right now, I just care about Horiz scroll.
I get the scroll bar position with
control handle cbhndl, ListviewID to hCtl
pos= GetScrollPos(hctl,%SB_HORZ)
and later
SetScrollPos(hCTL,%SB_HORZ,pos,-1)
But that only sets the scroll bar
Adding
ListView_Scroll (hCTL,pos,0) moves the listview, but this is in pixels and what is saved with GetScroll pos is not. Is there a way to get the ListView scroll position?
Comment