本帖最后由 Mr丶KQ 于 2016-9-7 11:54 编辑 #include <GUIConstantsEx.au3>
#include <GuiTreeView.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 442, 192, 124)
$TreeView1 = GUICtrlCreateTreeView(16, 16, 233, 369)
$TreeView1_0 = GUICtrlCreateTreeViewItem("1", $TreeView1)
$TreeView1_1 = GUICtrlCreateTreeViewItem("2", $TreeView1_0)
$TreeView1_2 = GUICtrlCreateTreeViewItem("3", $TreeView1_0)
$TreeView1_3 = GUICtrlCreateTreeViewItem("4", $TreeView1_0)
_GUICtrlTreeView_Expand($TreeView1,$TreeView1_0,True)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
如上代码所示.
如果禁止双击或单击时
不会展开或折叠 |