-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfrmTargetContainer.frm
39 lines (36 loc) · 1.18 KB
/
frmTargetContainer.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
VERSION 5.00
Begin VB.Form frmTargetContainer
Caption = "窗体对象"
ClientHeight = 3690
ClientLeft = 105
ClientTop = 435
ClientWidth = 5880
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 3690
ScaleWidth = 5880
End
Attribute VB_Name = "frmTargetContainer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
'如果按下了删除键而且当前选定了控件
If KeyCode = vbKeyDelete And Not (frmTarget.CurrentDragging Is Nothing) And frmTarget.picDrag(0).Visible Then
Call frmMain.mnuDelete_Click
End If
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then '点击右键则弹出右键菜单
PopupMenu frmMain.mnuTargetWindowPopup
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
If Not frmMain.IsExiting Then
Cancel = True
frmMain.mnuShowWindowTarget.Checked = False
Me.Hide
End If
End Sub