#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>
#include <GuiTreeView.au3>
#include <GuiConstantsEx.au3>
$form=GUICreate("欢迎", 800,660,-1,-1)
$htv = GUICtrlCreateTreeView(5, 5,330,585)
$zd1 = GUICtrlCreateContextMenu($htv)
$tj1 = GUICtrlCreateMenuItem("添加",$zd1)
$sc1 = GUICtrlCreateMenuItem("删除",$zd1)
$rn1 = GUICtrlCreateMenuItem("修改",$zd1)
$sx1 = GUICtrlCreateMenuItem("显示",$zd1)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $tj1
MsgBox(64,"提示","这是添加")
;..........
EndSwitch
WEnd
|