⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form0809.frm

📁 VB实验教程源码
💻 FRM
字号:
VERSION 5.00
Object = "{C1A8AF28-1257-101B-8FB0-0020AF039CA3}#1.1#0"; "MCI32.OCX"
Begin VB.Form Form1 
   Caption         =   "播放CD"
   ClientHeight    =   2685
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4455
   LinkTopic       =   "Form1"
   ScaleHeight     =   2685
   ScaleWidth      =   4455
   StartUpPosition =   3  '窗口缺省
   Begin MCI.MMControl MMControl1 
      Height          =   495
      Left            =   600
      TabIndex        =   0
      Top             =   360
      Width           =   3540
      _ExtentX        =   6244
      _ExtentY        =   873
      _Version        =   393216
      DeviceType      =   ""
      FileName        =   ""
   End
   Begin VB.Label Label2 
      Caption         =   "Label2"
      Height          =   615
      Left            =   1200
      TabIndex        =   2
      Top             =   1920
      Width           =   2535
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   495
      Left            =   1200
      TabIndex        =   1
      Top             =   1080
      Width           =   2415
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
'装载窗体时初始化MMControl1
    With MMControl1
        .DeviceType = "CDAudio"
        .Notify = False
        .Command = "open"
        MMControl1.Command = "open"
        Label1.Caption = "共有CD曲目" & .Tracks & "首"
        Label2.Caption = "当前正在播放第" & "0" & "首CD曲目"
    End With
End Sub

Private Sub MMControl1_StatusUpdate()
    Label2.Caption = "当前正在播放第" & MMControl1.Track & "首CD曲目"
End Sub

Private Sub Form_Unload(Cancel As Integer)
'卸载窗体
    MMControl1.Command = "Close"
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -