home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 2.00 Begin Form Form1 BorderStyle = 1 'Fixed Single ClientHeight = 2130 ClientLeft = 1785 ClientTop = 2985 ClientWidth = 3240 ControlBox = 0 'False Height = 2655 Left = 1725 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 2130 ScaleWidth = 3240 Top = 2520 Width = 3360 Begin PictureBox Picture1 AutoRedraw = -1 'True AutoSize = -1 'True BorderStyle = 0 'None Height = 480 Index = 4 Left = 1920 Picture = FLAG.FRX:0000 ScaleHeight = 480 ScaleWidth = 480 TabIndex = 5 Top = 1320 Width = 480 End Begin PictureBox Picture1 AutoRedraw = -1 'True AutoSize = -1 'True BorderStyle = 0 'None Height = 480 Index = 3 Left = 1320 Picture = FLAG.FRX:0302 ScaleHeight = 480 ScaleWidth = 480 TabIndex = 3 Top = 1320 Width = 480 End Begin PictureBox Picture1 AutoRedraw = -1 'True AutoSize = -1 'True BorderStyle = 0 'None Height = 480 Index = 1 Left = 120 Picture = FLAG.FRX:0604 ScaleHeight = 480 ScaleWidth = 480 TabIndex = 0 Top = 1320 Width = 480 End Begin PictureBox Picture5 AutoSize = -1 'True BorderStyle = 0 'None Height = 495 Left = 480 ScaleHeight = 495 ScaleWidth = 495 TabIndex = 4 Top = 720 Width = 495 End Begin Timer Timer2 Enabled = 0 'False Interval = 100 Left = 1920 Top = 480 End Begin CommandButton Command1 Caption = "Wave My Flag" Height = 495 Left = 120 TabIndex = 2 Top = 120 Width = 1335 End Begin PictureBox Picture1 AutoRedraw = -1 'True AutoSize = -1 'True BorderStyle = 0 'None Height = 480 Index = 2 Left = 720 Picture = FLAG.FRX:0906 ScaleHeight = 480 ScaleWidth = 480 TabIndex = 1 Top = 1320 Width = 480 End Declare Function sndPlaySound Lib "MMSYSTEM.DLL" (ByVal lpszSoundName As String, ByVal wFlags As Integer) As Integer Declare Function BitBlt Lib "GDI" (ByVal hDestDC As Integer, ByVal x As Integer, ByVal Y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hSrcDC As Integer, ByVal XSrc As Integer, ByVal YSrc As Integer, ByVal dwRop As Long) As Integer Const SRCCOPY = &HCC0020 Const SND_ASYNC = &H1 Const SND_NODEFAULT = &H2 Sub Command1_Click () Timer2.Enabled = True End Sub Sub Timer2_Timer () Static flag As Integer Dim Result As Integer flag = flag + 1 If flag = 5 Then flag = 1 Result = BitBlt(Picture5.hDC, 0, 0, 32, 32, Picture1(flag).hDC, 0, 0, SRCCOPY) End Sub