frmmain.frm

来自「新手学习vb语言的实用资料于其对计算机语言做出相应了解的教材」· FRM 代码 · 共 32 行

FRM
32
字号
VERSION 5.00
Begin VB.Form frmMain 
   Caption         =   "让窗体的标题栏闪烁"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer tmrFlash 
      Interval        =   500
      Left            =   2400
      Top             =   480
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long

Private Sub tmrFlash_Timer()
    Static mFlash As Boolean
    
    FlashWindow hwnd, Not mFlash
End Sub

⌨️ 快捷键说明

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