找回密码
 加入
搜索
查看: 2280|回复: 5

GUICtrlCreateListView 如何捕获消息?

[复制链接]
发表于 2009-4-7 03:36:28 | 显示全部楼层 |阅读模式
如何才能捕获 $TabSheet1 ,$TabSheet2  ,$TabSheet3 的消息.
并且在,$ListView1,$ListView2,$ListView3能循环转换?
HELP~```


#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("测试", 648, 461, 189, 113)
$Pic1 = GUICtrlCreatePic("", 8, 0, 633, 65, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Tab1 = GUICtrlCreateTab(8, 72, 633, 382)
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("1号")
$ListView1 = GUICtrlCreateListView("", 8, 96, 633, 357)
$TabSheet2 = GUICtrlCreateTabItem("2号")
$ListView2 = GUICtrlCreateListView("", 9, 96, 631, 357)
$TabSheet3 = GUICtrlCreateTabItem("3号")
$ListView3 = GUICtrlCreateListView("", 10, 96, 630, 357)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd
 楼主| 发表于 2009-4-7 03:37:34 | 显示全部楼层
等待高人的授教~`
发表于 2009-4-7 04:52:21 | 显示全部楼层
捕获什么消息?
发表于 2009-4-7 10:07:23 | 显示全部楼层
捕获什么消息?
发表于 2009-6-22 00:39:35 | 显示全部楼层
发表于 2009-6-22 08:45:45 | 显示全部楼层
Func gui()
                Switch @GUI_CtrlId
                        Case $GUI_EVENT_CLOSE

                        Case $AL1_setting ;更新
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-23 01:35 , Processed in 0.075645 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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