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

📄 activemovie.frm

📁 Visual Basic 6 大学教程的代码
💻 FRM
字号:
VERSION 5.00
Object = "{05589FA0-C356-11CE-BF01-00AA0055595A}#2.0#0"; "amovie.ocx"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmActiveMovie 
   Caption         =   "ActiveMovie Player"
   ClientHeight    =   4680
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3975
   LinkTopic       =   "Form1"
   ScaleHeight     =   4680
   ScaleWidth      =   3975
   Begin MSComDlg.CommonDialog dlgOpen 
      Left            =   3360
      Top             =   240
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton cmdOpenFile 
      Caption         =   "Open File to Play"
      Height          =   375
      Left            =   0
      TabIndex        =   1
      Top             =   0
      Width           =   3975
   End
   Begin AMovieCtl.ActiveMovie ActiveMovie1 
      Height          =   1110
      Left            =   0
      TabIndex        =   0
      Top             =   480
      Width           =   3990
      _ExtentX        =   7038
      _ExtentY        =   1958
      ShowPositionControls=   -1  'True
      ShowSelectionControls=   -1  'True
      FullScreenMode  =   -1  'True
      DisplayMode     =   1
   End
End
Attribute VB_Name = "frmActiveMovie"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Fig. 20.17
' Demonsrating the ActiveMovie control.
Option Explicit

Private Sub cmdOpenFile_Click()
   dlgOpen.Filter = "All files (*.*)|*.*|"
   Call dlgOpen.ShowOpen
   ActiveMovie1.FileName = dlgOpen.FileName
End Sub

Private Sub ActiveMovie1_Error(ByVal SCode As Integer, _
      ByVal Description As String, ByVal Source As String, _
      CancelDisplay As Boolean)
   MsgBox ("Invalid file type. Please choose another file.")
End Sub

⌨️ 快捷键说明

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