555.frm
来自「VB实现的工控智能仪表编程,通讯控制,支持日本岛电Sr93,FP21,SR73,」· FRM 代码 · 共 48 行
FRM
48 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight =24000
ClientLeft = 60
ClientTop = 345
ClientWidth =32000
ClipControls = 1
LinkTopic ="Form1"
ScaleHeight =24000
ScaleWidth =32000
ShowInTaskbar = 1
StartUpPosition = 3 'Windows Default
End
Attribute VB_Name = Form1
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Type PointXY
X As Long
Y As Long
End Type
Private Const RGN_AND = 1
Private Const RGN_COPY = 5
Private Const RGN_DIFF = 4
Private Const RGN_OR = 2
Private Const RGN_XOR = 3
Private Declare Function CreateRectRgn Lib "gdi32" Alias "CreateRectRgn" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function CombineRgn Lib "gdi32" Alias "CombineRgn" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" Alias "SetWindowRgn" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Private Declare Function CreatePolygonRgn Lib "gdi32" Alias "CreatePolygonRgn" (lpPoint As PointXY, ByVal nCount As Long, ByVal nPolyFillMode As Long) As Long
Private Sub Form_Activate()
Call DrawShape()
End Sub
'And here's the precedure which creates the shape of the form
Private Sub DrawShape()
Dim Points(490) As PointXY
hRgn& = CreateRectRgn(0, 0, 0, 0)
SetWindowRgn Me.hWnd, hRgn&, True
End sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?