找回密码
 加入
搜索
查看: 7351|回复: 6

如何选择SysTreeView32内的选项?

[复制链接]
发表于 2008-6-9 08:30:22 | 显示全部楼层 |阅读模式
如图。如何选择SysTreeView32内的选项?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2008-6-9 08:43:41 | 显示全部楼层
ControlTreeView
发表于 2008-6-9 12:19:35 | 显示全部楼层
句柄?你说的不是很清楚,到底要改什么
发表于 2008-6-9 23:10:37 | 显示全部楼层
[au3]#include <GuiTreeView.au3>
$Win="番茄花园 Windows 主题资源包 2.7.0.0 安装 ";;窗口名称
If Not WinExists($Win) Then
        MsgBox(0,"","不存在的窗口对像.")
        Exit
EndIf
$hWnd=ControlGetHandle($Win,"","[id:1032]");;,[id:1032]控件句柄
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[/au3]
发表于 2009-5-15 16:58:41 | 显示全部楼层
怎样取消其中某一个选项呢?
发表于 2009-6-7 07:32:48 | 显示全部楼层
请高手详细说说取消和选中的简单的方法。
发表于 2010-6-2 23:24:26 | 显示全部楼层
学习了,又学会一样啦
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-22 05:35 , Processed in 0.074595 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表