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

📄 中间开幕的出图效果.frm

📁 Windows API函数,希望大伙有用哦
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4440
   LinkTopic       =   "Form1"
   ScaleHeight     =   206
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   296
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture2 
      BorderStyle     =   0  'None
      Height          =   4500
      Left            =   0
      ScaleHeight     =   4500
      ScaleWidth      =   4485
      TabIndex        =   1
      Top             =   0
      Width           =   4485
      Begin VB.Timer Timer1 
         Enabled         =   0   'False
         Interval        =   10
         Left            =   720
         Top             =   3210
      End
   End
   Begin VB.PictureBox Picture1 
      AutoRedraw      =   -1  'True
      BorderStyle     =   0  'None
      Height          =   4500
      Left            =   0
      Picture         =   "中间开幕的出图效果.frx":0000
      ScaleHeight     =   300
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   299
      TabIndex        =   0
      Top             =   0
      Visible         =   0   'False
      Width           =   4485
   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 Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Sub Form_Paint()
  Dim X1 As Single, X2 As Single
Dim Dx As Single, D As Integer
  Dim P1 As Single, P2 As Single, I As Integer
    D = 300
    Dx = Picture1.Width / D
    P2 = Picture1.Height
    X1 = Picture1.Width / 2
    X2 = X1
   Picture2.Cls
    For I = 1 To D / 2
      BitBlt Form1.Picture2.hDC, X1, 0, Dx + 1, P2, Form1.Picture1.hDC, X1, 0, &HCC0020
      BitBlt Form1.Picture2.hDC, X2, 0, Dx + 1, P2, Form1.Picture1.hDC, X2, 0, &HCC0020
      X1 = X1 - Dx
      X2 = X2 + Dx
      Sleep 10
    Next I
End Sub



⌨️ 快捷键说明

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