moonseal 发表于 2008-6-9 08:30:22

如何选择SysTreeView32内的选项?

如图。如何选择SysTreeView32内的选项?

bing614 发表于 2008-6-9 08:43:41

ControlTreeView

netegg 发表于 2008-6-9 12:19:35

句柄?你说的不是很清楚,到底要改什么

bing614 发表于 2008-6-9 23:10:37

#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

aaeeff 发表于 2009-5-15 16:58:41

怎样取消其中某一个选项呢?

baxiantong 发表于 2009-6-7 07:32:48

请高手详细说说取消和选中的简单的方法。

风行者 发表于 2010-6-2 23:24:26

学习了,又学会一样啦
页: [1]
查看完整版本: 如何选择SysTreeView32内的选项?