thanesh
asked on
How to get the cursor position in ListControl
Hi there,
I need to get the row index when an item is clicked on a ListControl. For example, in ListBox there is a function
GetCurSel( ) to get the selected row. But, how can I get the row index in a ListControl.
Thanks,
I need to get the row index when an item is clicked on a ListControl. For example, in ListBox there is a function
GetCurSel( ) to get the selected row. But, how can I get the row index in a ListControl.
Thanks,
Is ListControl.SelectedIndex what you are looking for?
ASKER
Hi Sgvill,
I could not find a member function named SelectedIndex for the ListControl. I found an examle where they calculate the selected index based on GetTopIndex() and GetCoutPerPage()... but there is a bug in that example that I am trying to understand. Please let me know if there is an easy way. Thanks.
I could not find a member function named SelectedIndex for the ListControl. I found an examle where they calculate the selected index based on GetTopIndex() and GetCoutPerPage()... but there is a bug in that example that I am trying to understand. Please let me know if there is an easy way. Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you. :-)
ASKER