home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "CD Player"
- ClientHeight = 1950
- ClientLeft = 5310
- ClientTop = 3330
- ClientWidth = 4365
- Height = 2355
- Left = 5250
- LinkTopic = "Form1"
- ScaleHeight = 1950
- ScaleWidth = 4365
- Top = 2985
- Width = 4485
- Begin VB.PictureBox picVid
- Height = 3855
- Left = 60
- ScaleHeight = 3795
- ScaleWidth = 5235
- TabIndex = 5
- Top = 2100
- Width = 5295
- 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 = 375
- Left = 1500
- TabIndex = 6
- Top = 1380
- Width = 1275
- End
- Begin VB.Label Label2
- Caption = "Of"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 2220
- TabIndex = 4
- Top = 300
- Width = 315
- End
- Begin VB.Label Label1
- Caption = "Track:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 360
- TabIndex = 3
- Top = 300
- Width = 675
- End
- Begin VB.Label lblTracks
- 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 = 2700
- TabIndex = 2
- Top = 300
- Width = 1155
- End
- Begin VB.Label lblTrack
- 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 = 1140
- TabIndex = 1
- Top = 300
- Width = 915
- End
- Begin MCI.MMControl MMControl1
- Height = 375
- Left = 360
- TabIndex = 0
- Top = 900
- 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 Form_Load()
- MMControl1.DeviceType = "CDAudio"
- MMControl1.Command = "Open"
- 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
- lblTrack.Caption = Str(MMControl1.Track)
- lblTracks.Caption = Str(MMControl1.Tracks)
- 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
-