📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "Layers"
ClientHeight = 5370
ClientLeft = 60
ClientTop = 345
ClientWidth = 4245
LinkTopic = "Form2"
ScaleHeight = 5370
ScaleWidth = 4245
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Close"
Height = 375
Left = 1440
TabIndex = 1
Top = 4920
Width = 1335
End
Begin VB.ListBox List1
Height = 4560
ItemData = "Form2.frx":0000
Left = 120
List = "Form2.frx":0002
Style = 1 'Checkbox
TabIndex = 0
Top = 120
Width = 3975
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function GetBoxCAD Lib "CADImage.dll" (ByVal Handle As Long, AbsWidth As Single, AbsHeight As Single) As Long
Private Declare Function GetClientRect Lib "user32.dll" (ByVal hwnd As Long, R As RECT) As Boolean
Private Declare Function DrawCAD Lib "CADImage.dll" (ByVal Handle As Long, ByVal DC As Long, R As RECT) As Long
Private Sub Command1_Click()
Form2.Hide
End Sub
Private Sub List1_Click()
For I = 0 To List1.ListCount - 1
Layer = List1.ItemData(I)
CADLayerVisible Layer, List1.Selected(I)
Next I
If ClickFlag = 1 Then Form1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -