aboutme.frm
来自「基于AT89S52的简易逻辑分析仪!IDE:VB6.0 通过单片机与电脑的串口」· FRM 代码 · 共 99 行
FRM
99 行
VERSION 5.00
Begin VB.Form Form2
BackColor = &H8000000B&
BorderStyle = 1 'Fixed Single
Caption = "关于本程序"
ClientHeight = 3630
ClientLeft = 45
ClientTop = 330
ClientWidth = 6030
Icon = "aboutme.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3630
ScaleWidth = 6030
StartUpPosition = 2 '屏幕中心
Begin VB.Image Image1
Height = 3525
Left = 2760
Picture = "aboutme.frx":74F2
Top = 6000
Width = 5250
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Type OSVERSIONINFO
dwOSVersionInfoSize As Long
dwMajorVersion As Long
dwMinorVersion As Long
dwBuildNumber As Long
dwPlatformId As Long
szCSDVersion As String * 128
End Type
Dim Flag, ttt As Integer
Private Declare Function GetVersionEx Lib "kernel32" _
Alias "GetVersionExA" (lpVersionInformation As OSVERSIONINFO) As Long
Private Sub Form_Load()
Image1.Left = 0
Image1.Top = 0
Me.HEiGHT = Image1.HEiGHT + 370
Me.Width = Image1.Width
ttt = 0
Dim rtn As Long
If Flag = 1 Then
rtn = GetWindowLong(Me.hwnd, GWL_EXSTYLE)
rtn = rtn Or WS_EX_LAYERED
SetWindowLong Me.hwnd, GWL_EXSTYLE, rtn
SetLayeredWindowAttributes Me.hwnd, 0, 1, LWA_ALPHA
End If
Image1.Left = 0
Image1.Top = 0
Me.Width = Image1.Width
Me.HEiGHT = Image1.HEiGHT + 300
Dim Ver As OSVERSIONINFO
Dim x As Long
Ver.dwOSVersionInfoSize = Len(Ver)
GetVersionEx Ver
Flag = 0
If Ver.dwMajorVersion >= 5 Then Flag = 1
End Sub
Private Sub Label1_Click()
End Sub
Private Sub Timer1_Timer()
Dim rtn As Long
If Flag = 1 Then
ttt = ttt + 5
rtn = GetWindowLong(Me.hwnd, GWL_EXSTYLE)
rtn = rtn Or WS_EX_LAYERED
SetWindowLong Me.hwnd, GWL_EXSTYLE, rtn
SetLayeredWindowAttributes Me.hwnd, 0, ttt, LWA_ALPHA
If ttt >= 255 Then Timer1.Interval = 0
End If
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?