FF_ListView_SetSelectedItem - A bit more functionality!

Started by Chris Cullen, March 17, 2005, 08:19:53 AM

Previous topic - Next topic

Chris Cullen

Hi Paul

I notice that your FF_ListView_SetSelectedItem function does not actually change the state of a list view item, it only chages the starting point for a selection.  Can you add the following type of stuff to it so that it actually selects the item as well?  Or should this be another FF function?


Dim tItem As LVITEM
tItem.Mask = %LVIF_STATE
tItem.iItem = {current item number}
tItem.iSubItem = {dunno but I use 0}
tItem.State = %LVIS_FOCUSED Or %LVIS_SELECTED
tItem.Statemask = -1 {forces all bits to be set}
SendMessage {listview handle}, %LVM_SETITEMSTATE,ByVal {item index}, VarPtr(tItem)



Thanks

TechSupport

Thanks Chris, sounds reasonable. I will make the change.

:)