?? form1.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 3120
TabIndex = 0
Top = 2160
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Type Point
x As Single
y As Single
End Type
Private Function MidPoint(p1 As Point, p2 As Point) As Point
Dim m As Point
m.x = (p1.x + p2.x) / 2
m.y = (p1.y + p2.y) / 2
MidPoint = m
End Function
Private Sub Command1_Click()
Dim mp As Point
Dim p1 As Point, p2 As Point
p1.x = 0: p1.y = 0
p2.x = 1: p2.y = 2
mp = MidPoint(p1, p2)
Print mp.x, mp.y
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -