找回密码
 加入
搜索
查看: 2469|回复: 2

如何创建自定义数据类型和使用

[复制链接]
发表于 2008-5-18 08:41:33 | 显示全部楼层 |阅读模式
如何创建自定义数据类型和使用
小弟在使用API的时候遇到这个问题,请高手赐教
或者说一下怎样获取任务栏高度

获取任务栏高度问题 参考了 http://www.autoitx.com/forum.php?mod=viewthread&tid=474&extra=page%3D1
已经解决

[ 本帖最后由 Bone 于 2008-5-19 00:07 编辑 ]
发表于 2008-5-18 17:48:28 | 显示全部楼层
DllStructCreate
 楼主| 发表于 2008-5-18 19:15:09 | 显示全部楼层
Func _GetTaskBarHeight()
        Dim $lRes
        $Str = "long Left;long Top;long Right;long Bottom"
        $rectVal = DllStructCreate($Str)
        $lRes = DllCall("user32.dll","long","SystemParametersInfo","long",48,"long",0,"any",$rectVal,"long",0)
        Return rectVal.Bottom  ;此句为VB源码返回值
EndFunc


请帮忙解决一下,$rectVal 的值是API写进去的,不知道怎样用DllStructSetData给它值。。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-19 00:31 , Processed in 0.071989 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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