home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmMain
- Caption = "FlashWindow Demo"
- ClientHeight = 2340
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4380
- LinkTopic = "Form1"
- ScaleHeight = 2340
- ScaleWidth = 4380
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton cmdFlash
- Caption = "&FlashWindow On"
- Default = -1 'True
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 915
- Left = 1380
- TabIndex = 0
- Top = 600
- Width = 1875
- End
- Begin VB.Timer Timer1
- Enabled = 0 'False
- Interval = 1000
- Left = 180
- Top = 1680
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdFlash_Click()
- Dim sCaption As String
- ' Flash the window
- FlashWindow frmMain.hwnd, 1
- ' Toggle the timer's enabled state
- Timer1.Enabled = Not Timer1.Enabled
- ' Set the button text
- sCaption = "&FlashWindow "
- If Timer1.Enabled Then
- sCaption = sCaption + "Off"
- Else
- sCaption = sCaption + "On"
- End If
- cmdFlash.Caption = sCaption
- End Sub
- Private Sub Timer1_Timer()
- ' Flash the window
- FlashWindow frmMain.hwnd, 1
- End Sub
-