如何选择SysTreeView32内的选项
2014-12-25
展开全部
#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
$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
大雅新科技有限公司
2024-11-19 广告
2024-11-19 广告
这方面更多更全面的信息其实可以找下大雅新。深圳市大雅新科技有限公司从事KVM延长器,DVI延长器,USB延长器,键盘鼠标延长器,双绞线视频传输器,VGA视频双绞线传输器,VGA延长器,VGA视频延长器,DVI KVM 切换器等,优质供应商,...
点击进入详情页
本回答由大雅新科技有限公司提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询