找回密码
 加入
搜索
查看: 1523|回复: 3

请问窗口逐渐消失并退出如何实现

[复制链接]
发表于 2010-1-7 22:24:12 | 显示全部楼层 |阅读模式
本帖最后由 sky808 于 2010-1-7 22:35 编辑

请问高手们怎样实现窗口在关闭时逐渐消失呢
我在别人写的程序中见到过,感觉很新鲜,也想学习.
平时写的都是直接 exit 退出那种.
多谢!!!
发表于 2010-1-7 22:30:10 | 显示全部楼层
回复 1# sky808
$hwnd = GUICreate("渐变窗口", 400, 300)
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00080000)
GUISetState()
Sleep(2000)
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00090000)
 楼主| 发表于 2010-1-7 22:34:39 | 显示全部楼层
多谢多谢,效率真高!!!
发表于 2010-1-7 22:35:54 | 显示全部楼层
搜索下“效果”你会发现很多
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-28 00:43 , Processed in 0.085496 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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