| Private Declare Function FlashWindow Lib "user32" ( _ ByVal hwnd As Long, ByVal bInvert As Long) As Long |
| Dim OnFlash As Boolean Private Sub Command1_Click() |
| If OnFlash = False Then Command1.Caption = "停止闪烁" Timer1.Enabled = True OnFlash = True |
| Else Timer1.Enabled = False Command1.Caption = "窗体标题栏闪烁" |
| Call FlashWindow(Me.hwnd, False) OnFlash = False End If End Sub |
| Private Sub Timer1_Timer() |
| Call FlashWindow(Me.hwnd, True) End Sub |
关注此文的读者还看过: