表示遇到过~~!顶起来~~!
好比下面这程序...我左键点击aaa之后再右键bbb焦点只在右键按下的时候在bbb上,松开又回到aaa去了..
相信LZ是这个意思吧!#include <GUIConstantsEx.au3>
#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 442, 192, 124)
$TreeView1 = GUICtrlCreateTreeView(48, 56, 289, 273)
$TreeView1_0 = GUICtrlCreateTreeViewItem("aaa", $TreeView1)
$TreeView1_1 = GUICtrlCreateTreeViewItem("1111", $TreeView1_0)
$TreeView1_2 = GUICtrlCreateTreeViewItem("bbbb", $TreeView1)
$TreeView1_3 = GUICtrlCreateTreeViewItem("2222", $TreeView1_2)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|