📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "阅读信件"
ClientHeight = 6615
ClientLeft = 60
ClientTop = 345
ClientWidth = 7485
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 6615
ScaleWidth = 7485
Begin VB.TextBox txtDate
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 270
Left = 5280
TabIndex = 7
Text = "txtDate"
Top = 960
Width = 1395
End
Begin VB.TextBox txtFrom
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 270
Left = 375
TabIndex = 6
Text = "txtFrom"
Top = 225
Width = 4275
End
Begin VB.TextBox txtTo
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 270
Left = 375
TabIndex = 5
Text = "txtTo"
Top = 480
Width = 4275
End
Begin VB.TextBox txtSubject
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 270
Left = 375
TabIndex = 4
Text = "txtSubject"
Top = 960
Width = 4275
End
Begin VB.TextBox txtCc
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 270
Left = 375
TabIndex = 3
Text = "txtCc"
Top = 720
Width = 4275
End
Begin VB.TextBox txtNoteText
Height = 3255
Left = 360
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 2
Top = 1800
Width = 6360
End
Begin VB.ListBox alist
Height = 600
Left = 360
TabIndex = 0
Top = 5640
Width = 6375
End
Begin VB.Label numAtt
Caption = "附件:"
Height = 255
Left = 360
TabIndex = 1
Top = 5160
Width = 1215
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub alist_DblClick()
'打开附件文件的子程序
Main.MAPIMess.AttachmentIndex = alist.ListIndex
If Main.MAPIMess.AttachmentType = vbAttachTypeData Then
Call DisplayAttachedFile(Main.MAPIMess.AttachmentPathName)
Else
MsgBox "This sample application doesn't view OLE-type attachments"
End If
End Sub
Private Sub Form_Activate()
'当阅读邮件消息的子窗体处于是活动子窗体时
'将MAPIMessages控件的消息索引与邮件消息列表框索引
'设置为与当前阅读的邮件一致
Form1.Mlist.ListIndex = Val(Me.Tag)
Form1.Mlist.ItemData(Val(Me.Tag)) = True
Main.MAPIMess.MsgIndex = Val(Me.Tag)
End Sub
Private Sub Form_Load()
Call Form_Resize
End Sub
Private Sub Form_Resize()
'当窗体大小发生改变时,调整各控件的大小
If Form2.WindowState <> 1 Then
If Form2.Height < 2600 Then
Form2.Height = 2600
End If
txtNoteText.Height = Form2.Height - txtNoteText.Top - 280
txtNoteText.Width = Form2.Width - 50
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -