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

[GUI管理] 怎样子得到控件的类型[已解决]

[复制链接]
发表于 2011-8-5 22:09:08 | 显示全部楼层 |阅读模式
本帖最后由 daihaobin 于 2011-8-20 09:40 编辑

假如我创建了一个控件Button
$Button1 = GUICtrlCreateButton("", 444, 580, 40, 40)
有没有相关的方法可以通过$Button1这个变量来得到$Button1代表的控件的类型呢?
发表于 2011-8-5 22:21:37 | 显示全部楼层

#Include <WinAPI.au3>
$gui = GUICreate("xxx")
$Button1 = GUICtrlCreateButton("", 444, 580, 40, 40)
$x = _WinAPI_GetClassName($Button1)
MsgBox(0,0,$x)

评分

参与人数 1金钱 +10 收起 理由
daihaobin + 10 谢谢帮忙

查看全部评分

您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-3-29 20:24 , Processed in 0.083613 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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