📄 form1.frm
字号:
VERSION 5.00
Object = "{C1A8AF28-1257-101B-8FB0-0020AF039CA3}#1.1#0"; "MCI32.OCX"
Begin VB.Form Form1
Caption = "CD播放器"
ClientHeight = 2205
ClientLeft = 60
ClientTop = 345
ClientWidth = 4575
LinkTopic = "Form1"
ScaleHeight = 2205
ScaleWidth = 4575
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "退出"
Height = 495
Left = 1800
TabIndex = 1
Top = 1320
Width = 1215
End
Begin MCI.MMControl MMControl1
Height = 495
Left = 480
TabIndex = 0
Top = 240
Width = 2760
_ExtentX = 4868
_ExtentY = 873
_Version = 393216
RecordVisible = 0 'False
EjectVisible = 0 'False
DeviceType = ""
FileName = ""
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()
Unload Me
End Sub
Sub Form_Load()
MMControl1.DeviceType = "CDaudio" 'MCI设备类型为CD唱片
MMControl1.Command = "open" '打开设备
End Sub
Sub Form_Unload(Cancel As Integer)
MMControl1.Command = "close" '退出时关闭MCI设备
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -