如何选择SysTreeView32内的选项?
如图。如何选择SysTreeView32内的选项? ControlTreeView 句柄?你说的不是很清楚,到底要改什么 #include <GuiTreeView.au3>$Win="番茄花园 Windows 主题资源包 2.7.0.0 安装 ";;窗口名称
If Not WinExists($Win) Then
MsgBox(0,"","不存在的窗口对像.")
Exit
EndIf
$hWnd=ControlGetHandle($Win,"","");;,控件句柄
Local $sItem
$hStart = _GUICtrlTreeView_GetFirstItem($hWnd)
MsgBox(0,"","全部取消 .")
$fCheck = False
While $hStart <> 0x00000000
_GUICtrlTreeView_SetChecked($hWnd,$hStart,$fCheck)
$hStart = _GUICtrlTreeView_GetNext($hWnd, $hStart)
WEnd
MsgBox(0,"","全部选择.")
$hStart = _GUICtrlTreeView_GetFirstItem($hWnd)
$fCheck = True
While $hStart <> 0x00000000
_GUICtrlTreeView_SetChecked($hWnd,$hStart,$fCheck)
$hStart = _GUICtrlTreeView_GetNext($hWnd, $hStart)
WEnd
Exit 怎样取消其中某一个选项呢? 请高手详细说说取消和选中的简单的方法。 学习了,又学会一样啦
页:
[1]