?? 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 + -