form1.frm

来自「一款漂亮的控件。 快」· FRM 代码 · 共 43 行

FRM
43
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "正在加载..."
   ClientHeight    =   750
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2625
   LinkTopic       =   "Form1"
   ScaleHeight     =   750
   ScaleWidth      =   2625
   StartUpPosition =   2  '屏幕中心
   Begin VB.Label Label1 
      Caption         =   "正在创建图形(异形)窗口,请稍候..."
      Height          =   615
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2535
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Face As Long

Private Sub Form_Load()

    Me.Show
    DoEvents
    
    Face = CreateRegionFromFile(App.Path & "\cattext.bmp")
    
    Form2.Show
    SetWindowRgn Form2.hwnd, Face, True
    ' make window stay on top
    SetWindowPos Form2.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE + SWP_SHOWWINDOW
    Me.Visible = False

End Sub

⌨️ 快捷键说明

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