home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "AVI Player"
- ClientHeight = 5310
- ClientLeft = 4335
- ClientTop = 2955
- ClientWidth = 4860
- Height = 5715
- Left = 4275
- LinkTopic = "Form1"
- ScaleHeight = 5310
- ScaleWidth = 4860
- Top = 2610
- Width = 4980
- Begin VB.PictureBox picVid
- Height = 3675
- Left = 0
- ScaleHeight = 3615
- ScaleWidth = 4755
- TabIndex = 5
- Top = 1620
- Width = 4815
- End
- Begin VB.CommandButton cmdOpen
- Caption = "Open"
- Default = -1 'True
- Height = 315
- Left = 3840
- TabIndex = 4
- Top = 1200
- Width = 915
- End
- Begin VB.TextBox txtFileName
- Height = 315
- Left = 1020
- TabIndex = 2
- Top = 1200
- Width = 2715
- End
- Begin VB.Label Label3
- Caption = "File Name:"
- Height = 195
- Left = 180
- TabIndex = 3
- Top = 1260
- Width = 795
- End
- Begin VB.Label lblStatus
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 1740
- TabIndex = 1
- Top = 660
- Width = 1275
- End
- Begin MCI.MMControl MMControl1
- Height = 375
- Left = 600
- TabIndex = 0
- Top = 180
- Width = 3540
- _Version = 65536
- PlayEnabled = -1 'True
- DeviceType = "CDAudio"
- UpdateInterval = 500
- _ExtentX = 6244
- _ExtentY = 661
- _StockProps = 32
- BorderStyle = 1
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub cmdOpen_Click()
- MMControl1.filename = txtFileName.TEXT
- MMControl1.Command = "Open"
- End Sub
- Private Sub Form_Load()
- MMControl1.DeviceType = "AVIVideo"
- MMControl1.hWndDisplay = picVid.hWnd
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- MMControl1.Command = "Close"
- End Sub
- Private Sub MMControl1_StatusUpdate()
- If MMControl1.Mode = MCI_MODE_NOT_READY Then
- lblStatus.Caption = "Not Ready"
- ElseIf MMControl1.Mode = MCI_MODE_STOP Then
- lblStatus.Caption = "Stop"
- ElseIf MMControl1.Mode = MCI_MODE_PLAY Then
- lblStatus.Caption = "Play"
- ElseIf MMControl1.Mode = MCI_MODE_RECORD Then
- lblStatus.Caption = "Record"
- ElseIf MMControl1.Mode = MCI_MODE_SEEK Then
- lblStatus.Caption = "Seek"
- ElseIf MMControl1.Mode = MCI_MODE_PAUSE Then
- lblStatus.Caption = "Pause"
- ElseIf MMControl1.Mode = MCI_MODE_OPEN Then
- lblStatus.Caption = "Open"
- End If
- End Sub
- Private Sub Option2_Click()
- End Sub
- Private Sub optAVI_Click()
- ' Set properties needed by MCI to open.
- Form1.MMControl1.Notify = False
- Form1.MMControl1.Wait = True
- Form1.MMControl1.Shareable = False
- Form1.MMControl1.TimeFormat = 8 'mciFormatTmsf
- Form1.MMControl1.filename = "c:\windows\help\whatson.avi"
- Form1.MMControl1.hWndDisplay = picVid.hWnd
- ' Open the MCI WaveAudio device.
- Form1.MMControl1.Command = "Open"
- Me.Height = 6510
- End Sub
- Private Sub optCDA_Click()
- End Sub
- Private Sub optWAV_Click()
- ' Set properties needed by MCI to open.
- Form1.MMControl1.Notify = False
- Form1.MMControl1.Wait = True
- Form1.MMControl1.Shareable = False
- Form1.MMControl1.TimeFormat = 8 'mciFormatTmsf
- Form1.MMControl1.filename = "c:\windows\help\whatson.avi"
- Form1.MMControl1.hWndDisplay = picVid.hWnd
- ' Open the MCI WaveAudio device.
- Form1.MMControl1.Command = "Open"
- Me.Height = 2505
- End Sub
-