Hello Paul,
I was trying to get the image index on a Treeview item and it seemed to be setting it to zero instead.
Below is an excerpt from the code generated by FF. I think the Treeview_SetItem call should be Treeview_GetItem.
Function FF_TreeView_GetImage (ByVal hWndControl As Long, _
ByVal hItem As Long) As Long
Local ti As TV_ITEM
' Do a check to ensure that this is actually a window handle
If IsWindow(hWndControl) Then
ti.hItem = hItem
ti.mask = %TVIF_HANDLE Or %TVIF_IMAGE
If TreeView_SetItem (hWndControl, ti ) = 0 Then
Function = -1
Else
Function = ti.iImage
End If
End If
End Function
Thanks,
David
PS WOW! I got my Code Warrior status with this post!
You are right, that function is wrong. Last year i also
found that FF_Control_GetFont() was wrong, and i think
Paul fixed it. Let him know about this and most likely
he will take care of this. :)
Yes, oops!
Please copy the attached file (that's in the zip file) to your FireFly installation folder.