PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Chris Cullen on March 17, 2005, 08:19:53 AM

Title: FF_ListView_SetSelectedItem - A bit more functionality!
Post by: Chris Cullen on March 17, 2005, 08:19:53 AM
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
Title: FF_ListView_SetSelectedItem - A bit more functionality!
Post by: TechSupport on March 17, 2005, 08:42:02 AM
Thanks Chris, sounds reasonable. I will make the change.

:)