dann poste es eben nicht...
[autoit]#include <GUIConstants.au3>
$Form1 = GUICreate("demo", 180, 330)
Local $iStyle = BitOR($TVS_EDITLABELS, $TVS_HASBUTTONS, $TVS_HASLINES, $TVS_LINESATROOT, $TVS_DISABLEDRAGDROP, $TVS_SHOWSELALWAYS, $TVS_CHECKBOXES)
$hTreeView = GUICtrlCreateTreeView(2, 2, 176, 260, $iStyle, $WS_EX_CLIENTEDGE)
$hParent = GUICtrlCreateTreeViewItem(StringFormat("gruppe"),$hTreeView )
guisetstate()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $hparent
if GUICtrlRead($hParent) = 260 then msgbox(0,"lol","off")
if GUICtrlRead($hParent) = 257 then msgbox(0,"lol","on")
EndSelect
WEnd
ich frag mich nur warum du stringformat benutzt bzw warum du
_GUICtrlTreeView_Add
anstelle von
GUICtrlCreateTreeViewItem