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