Voici mon code exemple :
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>
#include <GuiListView.au3>
Example()
Func Example()
GUICreate("Mon Gui", 440, 250, 100, 200, -1, $WS_EX_ACCEPTFILES)
Global $idListview = GUICtrlCreateListView("col1 |col2|col3|col 4 ", 10, 10, 220, 150) ;,$LVS_SORTDESCENDING)
Local $idItem1 = GUICtrlCreateListViewItem("item 1|item 2|item 3|item 4", $idListview)
Local $idItem2 = GUICtrlCreateListViewItem("item 5|item 6|item 7| Item 8", $idListview)
Local $idItem3 = GUICtrlCreateListViewItem("item 9|item 10|item 11|Item 12", $idListview)
;~ Global $MonChamp = GUICtrlCreateInput("", 240, 10, 150, 30)
GUISetState(@SW_SHOW)
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $idListview
;~ MsgBox($MB_SYSTEMMODAL, "listview", "clicked=" & GUICtrlGetState($idListview), 2);réagit sur clic d'entête des colonnes
_GUICtrlListView_SetSelectedColumn($idListview, GUICtrlGetState($idListview))
EndSwitch
WEnd
EndFunc ;==>Example
func Print($Value)
consolewrite($Value & @crlf)
endfunc
J'aimerais pouvoir sélectionner la colonne en cliquant directement sur une cellule (et cela tj sans WM_NOTIFY)
Merci pour votre aide