标题:[求助].net 中怎么调用api.多谢了
取消只看楼主
捉梦人
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-4-25
 问题点数:0 回复次数:0 
[求助].net 中怎么调用api.多谢了

窗体的淡入淡出效果
代码:
Public Class Form1
Inherits System.Windows.Forms.Form
Declare Auto Function animatewindow Lib "user32" (ByVal hwnd As Integer, ByVal dwTime As Integer, _
ByVal dwFlags As Integer) As Boolean
Const AW_HOR_POSITIVE = &H1
Const AW_HOR_NEGATIVE = &H2
Const AW_VER_POSITIVE = &H4
Const AW_VER_NEGPTIVE = &H8
Const AW_CENTER = &H10
Const AW_HIDE = &H10000
Const AW_ACTIVATE = &H20000
Const AW_SLIDE = &H40000
Const AW_BLEND = &H80000

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
animatewindow(Me.Handle, 1000, AW_BLEND Or AW_HIDE)
End Sub
End Class
运行时

这是怎么回事呀?

搜索更多相关主题的帖子: api Const Integer ByVal 
2006-04-25 20:35



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-60139-1-1.html




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

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