| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1263 人关注过本帖
标题:VB中的AnimateWindow为什么是黑的?
取消只看楼主 加入收藏
我是菜鸟哦
Rank: 6Rank: 6
等 级:贵宾
威 望:22
帖 子:921
专家分:209
注 册:2007-5-4
结帖率:73.33%
收藏
已结贴  问题点数:20 回复次数:3 
VB中的AnimateWindow为什么是黑的?
新建一个工程,添加一个模块,模块内代码如下,实例化一个窗口,通过ainmatewindow方法显示该窗口,但是VB下的背景为什么是黑的?
Const AW_HOR_POSITIVE = &H1 'Animates the window from left to right. This flag can be used with roll or slide animation.
Const AW_HOR_NEGATIVE = &H2 'Animates the window from right to left. This flag can be used with roll or slide animation.
Const AW_VER_POSITIVE = &H4 'Animates the window from top to bottom. This flag can be used with roll or slide animation.
Const AW_VER_NEGATIVE = &H8 'Animates the window from bottom to top. This flag can be used with roll or slide animation.
Const AW_CENTER = &H10 'Makes the window appear to collapse inward if AW_HIDE is used or expand outward if the AW_HIDE is not used.
Const AW_HIDE = &H10000 'Hides the window. By default, the window is shown.
Const AW_ACTIVATE = &H20000 'Activates the window.
Const AW_SLIDE = &H40000 'Uses slide animation. By default, roll animation is used.
Const AW_BLEND = &H80000 'Uses a fade effect. This flag can be used only if hwnd is a top-level window.
Private Declare Function AnimateWindow Lib "user32" (ByVal hwnd As Long, ByVal dwTime As Long, ByVal dwFlags As Long) As Boolean
Dim i As Form
Public Sub Main()
Set i = New Form1
i.Caption = "NEW"
AnimateWindow i.hwnd, 1000, &H80000
i.Refresh
End Sub

[ 本帖最后由 我是菜鸟哦 于 2010-8-15 19:19 编辑 ]
搜索更多相关主题的帖子: 新建 
2010-08-15 19:18
我是菜鸟哦
Rank: 6Rank: 6
等 级:贵宾
威 望:22
帖 子:921
专家分:209
注 册:2007-5-4
收藏
得分:0 
不行哦

偶是菜鸟鸟偶惧WHO?!!!!
2010-08-16 18:25
我是菜鸟哦
Rank: 6Rank: 6
等 级:贵宾
威 望:22
帖 子:921
专家分:209
注 册:2007-5-4
收藏
得分:0 
回复 5楼 bczgvip
什么意思,有什么方法可以解决,貌似就在VB上有这个问题

偶是菜鸟鸟偶惧WHO?!!!!
2010-08-16 21:34
我是菜鸟哦
Rank: 6Rank: 6
等 级:贵宾
威 望:22
帖 子:921
专家分:209
注 册:2007-5-4
收藏
得分:0 
回复 8楼 bczgvip
嘛意思

偶是菜鸟鸟偶惧WHO?!!!!
2010-08-19 17:21
快速回复:VB中的AnimateWindow为什么是黑的?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016472 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved