What is the max length that can be set for an item parameter?
Funny things seem to start happening when I make the length long.
Ex:
_GUICtrlListView_SetItemParam($hListView, 1, 111111111111111111)
and then
MsgBox(4160, "Information", "Item 2 Parameter: " & _GUICtrlListView_GetItemParam($hListView, 1))
returns 'Item 2 Parameter: -2074054201'
AutoIt
#include <GUIConstantsEx.au3> #include <GuiListView.au3> $Debug_LV = False ; Check ClassName being passed to ListView functions, set to True and use a handle to another control to see it work _Main() Func _Main() Local $hListView GUICreate("ListView Set Item Param", 400, 300) $hListView = GUICtrlCreateListView("", 2, 2, 394, 268) GUISetState() ; Add columns _GUICtrlListView_AddColumn($hListView, "Items", 100) ; Add items _GUICtrlListView_AddItem($hListView, "Item 1") _GUICtrlListView_AddItem($hListView, "Item 2") _GUICtrlListView_AddItem($hListView, "Item 3") ; Set item 2 parameter _GUICtrlListView_SetItemParam($hListView, 0, 0123) _GUICtrlListView_SetItemParam($hListView, 1, 111111111111111111) _GUICtrlListView_SetItemParam($hListView, 2, 2345) MsgBox(4160, "Information", "Item 2 Parameter: " & _GUICtrlListView_GetItemParam($hListView, 1)) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main
Thanks!