找回密码
 加入
搜索
查看: 1732|回复: 1

[GUI管理] _GUICtrlToolbar_AddButton 怎么判断点击

[复制链接]
发表于 2012-11-9 17:39:59 | 显示全部楼层 |阅读模式
#include <GUIConstantsEx.au3>
#include <GuiToolbar.au3>
#include <ToolbarConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiImageList.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("2222222222222", 375, 200)
Global $ToolBar1, $ToolBar2, $ToolBar3

;GUICtrlCreateMenu("")
$hToolBar = _GUICtrlToolbar_Create($Form2, $TBSTYLE_FLAT + $TBSTYLE_LIST)
; $hToolBar_Image = _GUIImageList_Create(32, 32, 5,5);创建 ImageList 控件
;_GUIImageList_AddIcon($hToolBar_Image, 'Client.bmp', 0,True);添加图标到图像列表


$String3 = _GUICtrlToolbar_AddString($hToolbar, " 我的 ");添加新字符串到工具栏的字符串池
_GUICtrlToolbar_AddButton($hToolBar, $ToolBar3, 0, $String3); 添加按钮

GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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


EndSwitch
怎么判断被点击了呢?   查询了好多资料 都搞不定
发表于 2012-11-9 17:54:01 | 显示全部楼层
看看udf创建函数的示例
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-17 16:23 , Processed in 0.076120 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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