select treeview's subitem when the subitems are so many that can not be showed completely

5 views
Skip to first unread message

jenney880220

unread,
Mar 1, 2013, 6:18:40 AM3/1/13
to qda_...@googlegroups.com

#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

今天第三个参数就解决了我遇到的问题:某项下面有很多子项无法显示,这时候要自动选择某个子项,然后单击这个子项,此时必须要用第三个参数,否则就无法单击到你的目标项了。

Arthur

unread,
Mar 1, 2013, 8:53:25 PM3/1/13
to jenney880220, qda_sw_ta
So good. Thx for sharing to us.


2013/3/1 jenney880220 <jenney...@gmail.com>

--
您收到此邮件是因为您订阅了 Google 网上论坛的“QDA_SW_TA”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 qda_sw_ta+...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 

Reply all
Reply to author
Forward
0 new messages