Brandon
2004-08-03 05:13:14 UTC
I have a program that displays an LVS_OWNERDATA listview and when the
user selects an item and presses a button, the selected item is
removed from the list, and the listview is "updated" with calls to
ListView_DeleteAllItems() and ListView_SetItemCount(). The contents
of the listview are wide, requiring the user to scroll left or right
and up or down. The problem is that when the list is updated, the
listview defaults back to the top left corner of the listview. Is
there any way get get the scroll position of the listview before the
update and restore the position after?
-Brandon
user selects an item and presses a button, the selected item is
removed from the list, and the listview is "updated" with calls to
ListView_DeleteAllItems() and ListView_SetItemCount(). The contents
of the listview are wide, requiring the user to scroll left or right
and up or down. The problem is that when the list is updated, the
listview defaults back to the top left corner of the listview. Is
there any way get get the scroll position of the listview before the
update and restore the position after?
-Brandon