VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form1 
   Caption         =   "Animation应用示例"
   ClientHeight    =   2370
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4635
   LinkTopic       =   "Form1"
   ScaleHeight     =   2370
   ScaleWidth      =   4635
   StartUpPosition =   3  '窗口缺省
   Begin MSComCtl2.Animation Animation1 
      Height          =   615
      Left            =   240
      TabIndex        =   2
      Top             =   840
      Width           =   4215
      _ExtentX        =   7435
      _ExtentY        =   1085
      _Version        =   393216
      Center          =   -1  'True
      FullWidth       =   281
      FullHeight      =   41
   End
   Begin MSComctlLib.ProgressBar ProgressBar1 
      Height          =   375
      Left            =   120
      TabIndex        =   1
      Top             =   1800
      Width           =   4455
      _ExtentX        =   7858
      _ExtentY        =   661
      _Version        =   393216
      Appearance      =   1
   End
   Begin VB.CommandButton Command1 
      Caption         =   "开始计算"
      Height          =   375
      Left            =   3000
      TabIndex        =   0
      Top             =   120
      Width           =   1575
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
   Dim Counter As Integer
   Dim Workarea(30000) As String
   Animation1.Open (App.Path + "\filecopy.avi")
   Animation1.Play
   ProgressBar1.Min = LBound(Workarea)
   ProgressBar1.Max = UBound(Workarea)
   ProgressBar1.Visible = True
   ProgressBar1.Value = ProgressBar1.Min     '设置进度的值为 Min。
   For Counter = LBound(Workarea) To UBound(Workarea)  '在整个数组中循环。
     Workarea(Counter) = "Initial value" & Counter '设置数组中每项的初始值。
     ProgressBar1.Value = Counter
   Next Counter
   ProgressBar1.Visible = False
   ProgressBar1.Value = ProgressBar1.Min
   Animation1.Close
End Sub
Private Sub Form_Load()
   ProgressBar1.Align = vbAlignBottom
   ProgressBar1.Visible = False
End Sub
