Hi,
leider funktioniert der Doppelklick auf ein ListView Item unter Win 7 64bit nicht.
Einer eine Ahnung warum?
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <StructureConstants.au3>
#include <WindowsConstants.au3>
GUICreate("Listview Einträge", 220, 250, 100, 200, -1)
[/autoit] [autoit][/autoit] [autoit]$listview = GUICtrlCreateListView("Spalte1 |Spalte2|Spalte3", 10, 10, 200, 150);,$LVS_SORTDESCENDING)
$item1 = GUICtrlCreateListViewItem("Eintrag2|Spalte22|Spalte23", $listview)
$item2 = GUICtrlCreateListViewItem("Eintrag1|Spalte12|Spalte13", $listview)
$item3 = GUICtrlCreateListViewItem("Eintrag3|Spalte32|Spalte33", $listview)
GUISetState()
Do
$msg = GUIGetMsg()
Sleep(10)
Until $msg = $GUI_EVENT_CLOSE
;~ ; WM_NOTIFY event handler
Func WM_Notify_Events($hWndGUI, $MsgID, $wParam, $lParam)
#forceref $hWndGUI, $MsgID, $wParam
Local $tagNMHDR, $event, $hwndFrom, $code
$tagNMHDR = "hwnd hWndFrom;uint_ptr IDFrom;uint Code"
If @error Then Return
$event = DllStructGetData($tagNMHDR, 3)
Select
Case $wParam = $listview
Select
Case $event = $NM_DBLCLK
ConsoleWrite("ja" & @CRLF)
EndSelect
EndSelect
$tagNMHDR = 0
$event = 0
$lParam = 0
EndFunc ;==>WM_Notify_Events