[Implemented] LVFINDINFO structure needed for ListIconGadget
Posted: Thu Aug 05, 2004 1:08 pm
Hi, I need the LVFINDINFO structure to be supported so that I can search a
ListIconGadget for an entry. Or, does anyone know how to do this already?
Here's some API code that would do the trick if the structure was supported:
UPDATE: I just realised I could do a FindString search on each ListIconGadget item:
But it would still be nice to have this structure added. 
ListIconGadget for an entry. Or, does anyone know how to do this already?
Here's some API code that would do the trick if the structure was supported:
Code: Select all
a$="target"
FindTopic.LVFINDINFO ; <-- Compiler says 'Structure not found'
FindTopic\flags=#LVFI_STRING
FindTopic\psz=@a$
p=SendMessage_(hWnd,#LVM_FINDITEM,-1,FindTopic)
Debug "target was found at index position "+Str(p)
Code: Select all
a$="target"
For a=0 To CountGadgetItems(#gadget)-1
If FindString(GetGadgetItemText(#gadget,a,0),a$,1)<>0 : p=a : Break : EndIf
Next
Debug "target was found at index position "+Str(p)
