#include <GuiTreeView.au3>
_GUICtrlTreeView_SelectItem($hWnd, $hItem [, $iFlag=0])
此方法是用来选择treeview的某项,最后一个缺省的参数可能被人忽略,其实很重要。
$iFlag的可选值:
$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
今天第三个参数就解决了我遇到的问题:某项下面有很多子项无法显示,这时候要自动选择某个子项,然后单击这个子项,此时必须要用第三个参数,否则就无法单击到你的目标项了。
--
您收到此邮件是因为您订阅了 Google 网上论坛的“QDA_SW_TA”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 qda_sw_ta+...@googlegroups.com。
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。