找回密码
 加入
搜索
查看: 1750|回复: 0

[AU3基础] 如何选择treeview某项item的问题

[复制链接]
发表于 2015-7-17 11:45:42 | 显示全部楼层 |阅读模式
#include <GuiTreeView.au3>
_GUICtrlTreeView_SelectItem($hWnd, $hItem [, $iFlag=0])

此方法是用来选择treeview的某项,最后一个缺省的参数可能被人忽略,其实很重要。

[optional] Action flag:
$TVGN_CARET - Sets the selection to the given item
$TVGN_DROPHILITE - Redraws the given item in the style used to indicate the target of a drag/drop operation
$TVGN_FIRSTVISIBLE - Scrolls the tree view vertically so that the given item is the first visible item

今天第三个参数就解决了我遇到的问题:某项下面有很多很多子项,要自动选择某个子项,然后单击这个子项的时候必须要用第三个参数,否则就无法单击到你的目标项了。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-28 18:24 , Processed in 0.073695 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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