📄 mailoptfrm.frm
字号:
VERSION 5.00
Begin VB.Form MailOptFrm
BorderStyle = 3 'Fixed Dialog
Caption = "邮件设置"
ClientHeight = 3045
ClientLeft = 45
ClientTop = 330
ClientWidth = 4050
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3045
ScaleWidth = 4050
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton CancelBt
Caption = "取消"
Height = 375
Left = 2280
TabIndex = 5
Top = 2160
Width = 1095
End
Begin VB.CommandButton OKBt
Caption = "确认"
Height = 375
Left = 720
TabIndex = 4
Top = 2145
Width = 1095
End
Begin VB.CheckBox retRecip
Caption = "返回接收提示"
Height = 375
Left = 555
TabIndex = 3
Top = 1440
Width = 2670
End
Begin VB.CheckBox NewSession
Caption = "建立新的邮件会话"
Height = 375
Left = 555
TabIndex = 2
Top = 990
Width = 2670
End
Begin VB.CheckBox SendMapiDLG
Caption = "使用对话框发送电子邮件"
Height = 375
Left = 555
TabIndex = 1
Top = 105
Width = 2670
End
Begin VB.CheckBox DownLoadMail
Caption = "下载电子邮件"
Height = 375
Left = 555
TabIndex = 0
Top = 540
Width = 2670
End
End
Attribute VB_Name = "MailOptFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CancelBt_Click()
Unload Me
End Sub
Private Sub Form_Load()
'根据MAPISession控件的属性初始化收发邮件设置的各控件的值
UserName.Text = VBMail.MAPISess.UserName
MailPassword.Text = VBMail.MAPISess.Password
NewSession.Value = Abs(VBMail.MAPISess.NewSession)
DownLoadMail.Value = Abs(VBMail.MAPISess.DownLoadMail)
SendMapiDLG.Value = Abs(SendWithMapi)
retRecip.Value = Abs(ReturnRequest)
End Sub
Private Sub OKBt_Click()
'根据设置的值对MAPISession控件进行设置
VBMail.MAPISess.UserName = UserName.Text
VBMail.MAPISess.Password = MailPassword.Text
VBMail.MAPISess.NewSession = NewSession.Value
VBMail.MAPISess.DownLoadMail = DownLoadMail.Value
SendWithMapi = SendMapiDLG.Value
ReturnRequest = retRecip.Value
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -