home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l407 / 4.ddi / VBMAIL.FR_ / VBMAIL.bin (.txt)
Encoding:
Visual Basic Form  |  1993-04-28  |  22.1 KB  |  682 lines

  1. VERSION 2.00
  2. Begin MDIForm VBMAIL 
  3.    Caption         =   "VB Mail"
  4.    ClientHeight    =   6090
  5.    ClientLeft      =   240
  6.    ClientTop       =   975
  7.    ClientWidth     =   9195
  8.    Height          =   6780
  9.    Icon            =   VBMAIL.FRX:0000
  10.    Left            =   180
  11.    LinkTopic       =   "MDIForm1"
  12.    Top             =   345
  13.    Width           =   9315
  14.    Begin PictureBox Picture1 
  15.       Align           =   2  'Align Bottom
  16.       BackColor       =   &H00C0C0C0&
  17.       BorderStyle     =   0  'None
  18.       Enabled         =   0   'False
  19.       Height          =   345
  20.       Left            =   0
  21.       ScaleHeight     =   345
  22.       ScaleWidth      =   9195
  23.       TabIndex        =   0
  24.       Top             =   5745
  25.       Width           =   9195
  26.       Begin Line MsgBoxSide 
  27.          BorderColor     =   &H00FFFFFF&
  28.          Index           =   1
  29.          X1              =   7260
  30.          X2              =   7260
  31.          Y1              =   60
  32.          Y2              =   300
  33.       End
  34.       Begin Line MsgBoxSide 
  35.          BorderColor     =   &H00808080&
  36.          Index           =   0
  37.          X1              =   60
  38.          X2              =   60
  39.          Y1              =   60
  40.          Y2              =   300
  41.       End
  42.       Begin Line MsgBoxLine 
  43.          BorderColor     =   &H00FFFFFF&
  44.          Index           =   1
  45.          X1              =   60
  46.          X2              =   7260
  47.          Y1              =   300
  48.          Y2              =   300
  49.       End
  50.       Begin Line MsgBoxLine 
  51.          BorderColor     =   &H00808080&
  52.          Index           =   0
  53.          X1              =   60
  54.          X2              =   7260
  55.          Y1              =   60
  56.          Y2              =   60
  57.       End
  58.       Begin Line TimeBoxSide 
  59.          BorderColor     =   &H00FFFFFF&
  60.          Index           =   1
  61.          X1              =   8580
  62.          X2              =   8580
  63.          Y1              =   60
  64.          Y2              =   300
  65.       End
  66.       Begin Line TimeBoxLine 
  67.          BorderColor     =   &H00FFFFFF&
  68.          Index           =   1
  69.          X1              =   7320
  70.          X2              =   8580
  71.          Y1              =   300
  72.          Y2              =   300
  73.       End
  74.       Begin Line TimeBoxSide 
  75.          BorderColor     =   &H00808080&
  76.          Index           =   0
  77.          X1              =   7320
  78.          X2              =   7320
  79.          Y1              =   60
  80.          Y2              =   300
  81.       End
  82.       Begin Line TimeBoxLine 
  83.          BorderColor     =   &H00808080&
  84.          Index           =   0
  85.          X1              =   7320
  86.          X2              =   8580
  87.          Y1              =   60
  88.          Y2              =   60
  89.       End
  90.       Begin Line TopLine2 
  91.          BorderColor     =   &H00FFFFFF&
  92.          Index           =   1
  93.          X1              =   0
  94.          X2              =   10800
  95.          Y1              =   15
  96.          Y2              =   15
  97.       End
  98.       Begin Label UnreadLbl 
  99.          BackStyle       =   0  'Transparent
  100.          FontBold        =   0   'False
  101.          FontItalic      =   0   'False
  102.          FontName        =   "MS Sans Serif"
  103.          FontSize        =   8.25
  104.          FontStrikethru  =   0   'False
  105.          FontUnderline   =   0   'False
  106.          Height          =   255
  107.          Left            =   1800
  108.          TabIndex        =   7
  109.          Top             =   60
  110.          Width           =   1575
  111.       End
  112.       Begin Line TopLine2 
  113.          BorderColor     =   &H00000000&
  114.          Index           =   0
  115.          X1              =   0
  116.          X2              =   10800
  117.          Y1              =   0
  118.          Y2              =   0
  119.       End
  120.       Begin Label TimeLbl 
  121.          AutoSize        =   -1  'True
  122.          BackStyle       =   0  'Transparent
  123.          Caption         =   "Time"
  124.          FontBold        =   0   'False
  125.          FontItalic      =   0   'False
  126.          FontName        =   "MS Sans Serif"
  127.          FontSize        =   8.25
  128.          FontStrikethru  =   0   'False
  129.          FontUnderline   =   0   'False
  130.          Height          =   205
  131.          Left            =   7500
  132.          TabIndex        =   10
  133.          Top             =   75
  134.          Width           =   345
  135.       End
  136.       Begin Label MsgCountLbl 
  137.          AutoSize        =   -1  'True
  138.          BackStyle       =   0  'Transparent
  139.          Caption         =   "Message Count Information"
  140.          FontBold        =   0   'False
  141.          FontItalic      =   0   'False
  142.          FontName        =   "MS Sans Serif"
  143.          FontSize        =   8.25
  144.          FontStrikethru  =   0   'False
  145.          FontUnderline   =   0   'False
  146.          Height          =   195
  147.          Left            =   120
  148.          TabIndex        =   11
  149.          Top             =   75
  150.          Width           =   1935
  151.       End
  152.    End
  153.    Begin PictureBox Picture3 
  154.       Align           =   1  'Align Top
  155.       Height          =   855
  156.       Left            =   0
  157.       ScaleHeight     =   825
  158.       ScaleWidth      =   9165
  159.       TabIndex        =   8
  160.       Top             =   525
  161.       Visible         =   0   'False
  162.       Width           =   9195
  163.       Begin MapiMessages MapiMess 
  164.          AddressCaption  =   ""
  165.          AddressEditFieldCount=   0
  166.          AddressLabel    =   ""
  167.          AddressModifiable=   0   'False
  168.          AddressResolveUI=   -1  'True
  169.          FetchMsgType    =   ""
  170.          FetchSorted     =   0   'False
  171.          FetchUnreadOnly =   -1  'True
  172.          Left            =   1320
  173.          Top             =   120
  174.       End
  175.       Begin MapiSession MapiSess 
  176.          Action          =   0  'Nothing
  177.          DownloadMail    =   -1  'True
  178.          Left            =   720
  179.          LogonUI         =   -1  'True
  180.          NewSession      =   0   'False
  181.          Password        =   ""
  182.          Top             =   120
  183.          UserName        =   ""
  184.       End
  185.       Begin CommonDialog CMDialog1 
  186.          CancelError     =   -1  'True
  187.          Left            =   1920
  188.          Top             =   120
  189.       End
  190.       Begin Timer Timer1 
  191.          Interval        =   15000
  192.          Left            =   180
  193.          Top             =   120
  194.       End
  195.       Begin Label Label1 
  196.          Caption         =   "These controls are invisible at Runtime"
  197.          FontBold        =   0   'False
  198.          FontItalic      =   0   'False
  199.          FontName        =   "MS Sans Serif"
  200.          FontSize        =   8.25
  201.          FontStrikethru  =   0   'False
  202.          FontUnderline   =   0   'False
  203.          Height          =   315
  204.          Left            =   2700
  205.          TabIndex        =   9
  206.          Top             =   300
  207.          Width           =   2835
  208.       End
  209.    End
  210.    Begin PictureBox Picture2 
  211.       Align           =   1  'Align Top
  212.       BackColor       =   &H00C0C0C0&
  213.       BorderStyle     =   0  'None
  214.       Height          =   525
  215.       Left            =   0
  216.       ScaleHeight     =   525
  217.       ScaleWidth      =   9195
  218.       TabIndex        =   12
  219.       Top             =   0
  220.       Width           =   9195
  221.       Begin CommandButton Delete 
  222.          Caption         =   "&Delete"
  223.          Enabled         =   0   'False
  224.          FontBold        =   0   'False
  225.          FontItalic      =   0   'False
  226.          FontName        =   "MS Sans Serif"
  227.          FontSize        =   8.25
  228.          FontStrikethru  =   0   'False
  229.          FontUnderline   =   0   'False
  230.          Height          =   330
  231.          Left            =   4980
  232.          TabIndex        =   4
  233.          Top             =   90
  234.          Width           =   1035
  235.       End
  236.       Begin CommandButton Next 
  237.          Caption         =   "&Next"
  238.          Enabled         =   0   'False
  239.          FontBold        =   0   'False
  240.          FontItalic      =   0   'False
  241.          FontName        =   "MS Sans Serif"
  242.          FontSize        =   8.25
  243.          FontStrikethru  =   0   'False
  244.          FontUnderline   =   0   'False
  245.          Height          =   330
  246.          Left            =   7440
  247.          TabIndex        =   6
  248.          Top             =   90
  249.          Width           =   1035
  250.       End
  251.       Begin CommandButton Previous 
  252.          Caption         =   "&Previous"
  253.          Enabled         =   0   'False
  254.          FontBold        =   0   'False
  255.          FontItalic      =   0   'False
  256.          FontName        =   "MS Sans Serif"
  257.          FontSize        =   8.25
  258.          FontStrikethru  =   0   'False
  259.          FontUnderline   =   0   'False
  260.          Height          =   330
  261.          Left            =   6420
  262.          TabIndex        =   5
  263.          Top             =   90
  264.          Width           =   1035
  265.       End
  266.       Begin CommandButton SendCtl 
  267.          Caption         =   "&Forward"
  268.          Enabled         =   0   'False
  269.          FontBold        =   0   'False
  270.          FontItalic      =   0   'False
  271.          FontName        =   "MS Sans Serif"
  272.          FontSize        =   8.25
  273.          FontStrikethru  =   0   'False
  274.          FontUnderline   =   0   'False
  275.          Height          =   330
  276.          Index           =   9
  277.          Left            =   3600
  278.          TabIndex        =   3
  279.          Top             =   90
  280.          Width           =   1035
  281.       End
  282.       Begin CommandButton SendCtl 
  283.          Caption         =   "Reply &All"
  284.          Enabled         =   0   'False
  285.          FontBold        =   0   'False
  286.          FontItalic      =   0   'False
  287.          FontName        =   "MS Sans Serif"
  288.          FontSize        =   8.25
  289.          FontStrikethru  =   0   'False
  290.          FontUnderline   =   0   'False
  291.          Height          =   330
  292.          Index           =   8
  293.          Left            =   2580
  294.          TabIndex        =   2
  295.          Top             =   90
  296.          Width           =   1035
  297.       End
  298.       Begin CommandButton SendCtl 
  299.          Caption         =   "&Reply"
  300.          Enabled         =   0   'False
  301.          FontBold        =   0   'False
  302.          FontItalic      =   0   'False
  303.          FontName        =   "MS Sans Serif"
  304.          FontSize        =   8.25
  305.          FontStrikethru  =   0   'False
  306.          FontUnderline   =   0   'False
  307.          Height          =   330
  308.          Index           =   7
  309.          Left            =   1560
  310.          TabIndex        =   1
  311.          Top             =   90
  312.          Width           =   1035
  313.       End
  314.       Begin CommandButton SendCtl 
  315.          Caption         =   "&Compose"
  316.          Enabled         =   0   'False
  317.          FontBold        =   0   'False
  318.          FontItalic      =   0   'False
  319.          FontName        =   "MS Sans Serif"
  320.          FontSize        =   8.25
  321.          FontStrikethru  =   0   'False
  322.          FontUnderline   =   0   'False
  323.          Height          =   330
  324.          Index           =   6
  325.          Left            =   180
  326.          TabIndex        =   13
  327.          Top             =   90
  328.          Width           =   1035
  329.       End
  330.       Begin Line TopLine 
  331.          BorderColor     =   &H00000000&
  332.          Index           =   1
  333.          X1              =   15
  334.          X2              =   10800
  335.          Y1              =   505
  336.          Y2              =   505
  337.       End
  338.       Begin Line Line1 
  339.          BorderColor     =   &H00FFFFFF&
  340.          X1              =   0
  341.          X2              =   0
  342.          Y1              =   0
  343.          Y2              =   540
  344.       End
  345.       Begin Line TopLine 
  346.          BorderColor     =   &H00FFFFFF&
  347.          Index           =   0
  348.          X1              =   0
  349.          X2              =   10800
  350.          Y1              =   0
  351.          Y2              =   0
  352.       End
  353.    End
  354.    Begin Menu FileMenu 
  355.       Caption         =   "&File"
  356.       Begin Menu PrintMessage 
  357.          Caption         =   "&Print Message"
  358.          Enabled         =   0   'False
  359.       End
  360.       Begin Menu PrSetup 
  361.          Caption         =   "Prin&ter Setup..."
  362.       End
  363.       Begin Menu sep 
  364.          Caption         =   "-"
  365.       End
  366.       Begin Menu Exit 
  367.          Caption         =   "E&xit"
  368.       End
  369.    End
  370.    Begin Menu EditMenu 
  371.       Caption         =   "&Edit"
  372.       Begin Menu EditDelete 
  373.          Caption         =   "Delete"
  374.          Enabled         =   0   'False
  375.       End
  376.    End
  377.    Begin Menu Mail 
  378.       Caption         =   "&Mail"
  379.       Begin Menu Logon 
  380.          Caption         =   "Lo&gon"
  381.       End
  382.       Begin Menu LogOff 
  383.          Caption         =   "Log&off"
  384.          Enabled         =   0   'False
  385.       End
  386.       Begin Menu sep2 
  387.          Caption         =   "-"
  388.       End
  389.       Begin Menu rMsgList 
  390.          Caption         =   "Update Message List"
  391.          Enabled         =   0   'False
  392.       End
  393.    End
  394.    Begin Menu Options 
  395.       Caption         =   "&Options"
  396.       Begin Menu MailOpts 
  397.          Caption         =   "&Mail..."
  398.       End
  399.       Begin Menu FontS 
  400.          Caption         =   "&Fonts"
  401.          Begin Menu FontScreen 
  402.             Caption         =   "&Screen..."
  403.          End
  404.          Begin Menu FontPrt 
  405.             Caption         =   "&Printer..."
  406.          End
  407.       End
  408.       Begin Menu DispTools 
  409.          Caption         =   "&Display Tools"
  410.          Checked         =   -1  'True
  411.          Enabled         =   0   'False
  412.       End
  413.    End
  414.    Begin Menu Address 
  415.       Caption         =   "&Address"
  416.       Begin Menu ShowAB 
  417.          Caption         =   "Show Address Book"
  418.       End
  419.    End
  420.    Begin Menu Window 
  421.       Caption         =   "Window"
  422.       WindowList      =   -1  'True
  423.       Begin Menu wa 
  424.          Caption         =   "&Cascade"
  425.          Index           =   0
  426.       End
  427.       Begin Menu wa 
  428.          Caption         =   "Tile Horiz."
  429.          Index           =   1
  430.       End
  431.       Begin Menu wa 
  432.          Caption         =   "Tile Vert."
  433.          Index           =   2
  434.       End
  435.       Begin Menu wa 
  436.          Caption         =   "Arrange Icons"
  437.          Index           =   3
  438.       End
  439.    End
  440.    Begin Menu HelpMenu 
  441.       Caption         =   "&Help"
  442.       Begin Menu About 
  443.          Caption         =   "&About"
  444.       End
  445.    End
  446. Sub About_Click ()
  447.     MsgBox "Sample Mail Application", 0, "VB Mail"
  448. End Sub
  449. Sub Delete_Click ()
  450. '--- Delete a mail message
  451.     '---- In List view all selected messages are deleted
  452.     If TypeOf VBMail.ActiveForm Is MsgView Then
  453.         Call DeleteMessage
  454.     ElseIf TypeOf VBMail.ActiveForm Is MailLst Then
  455.     '----- Feature Addition: Added code to handle deleting multiple selection
  456.         VBMail.MapiMess.MsgIndex = MailLst.MList.ListIndex
  457.         Call DeleteMessage
  458.     End If
  459. End Sub
  460. Sub DispTools_Click ()
  461.     DispTools.Checked = Not DispTools.Checked
  462.     MailLst.Tools.Visible = DispTools.Checked
  463.     If MailLst.Tools.Visible Then
  464.         Factor = 1
  465.         ToolsSize% = -MailLst.Tools.Height
  466.     Else
  467.         Factor = -1
  468.         ToolsSize% = 0
  469.     End If
  470.     Select Case MailLst.WindowState
  471.         Case 0    'Grow or Shrink the form to reflect addition or deletion of Toolbar
  472.             MailLst.Height = MailLst.Height + (Factor * MailLst.Tools.Height)
  473.         Case 2    'If maximized, grow or shrink the listbox size
  474.             MailLst.MList.Height = ScaleHeight - 90 - MailLst.MList.Top + ToolsSize%
  475.     End Select
  476. End Sub
  477. Sub EditDelete_Click ()
  478. '--- Delete the items in the list
  479. On Error GoTo Trap
  480.     If TypeOf VBMail.ActiveForm Is MailLst Then
  481.         Call Delete_Click
  482.     End If
  483.     Exit Sub
  484. Trap:
  485.     'If an error occurs, there is probably no active form
  486.     'Leave the sub
  487.     Exit Sub
  488. End Sub
  489. Sub Exit_Click ()
  490. '--- Close the app; make sure to logoff
  491.     If MapiSess.SessionID <> 0 Then
  492.         Call logoff_Click
  493.     End If
  494.     End
  495. End Sub
  496. Sub FontPrt_Click ()
  497. '---- Setup the printer fonts
  498.     On Error Resume Next
  499.     Cmdialog1.Flags = 2
  500.     Cmdialog1.FontName = Printer.FontName
  501.     Cmdialog1.FontSize = Printer.FontSize
  502.     Cmdialog1.FontBold = Printer.FontBold
  503.     Cmdialog1.FontItalic = Printer.FontItalic
  504.     Cmdialog1.Action = 4
  505.     If Err = 0 Then
  506.         Printer.FontName = Cmdialog1.FontName
  507.         Printer.FontSize = Cmdialog1.FontSize
  508.         Printer.FontBold = Cmdialog1.FontBold
  509.         Printer.FontItalic = Cmdialog1.FontItalic
  510.     End If
  511. End Sub
  512. Sub FontScreen_Click ()
  513. '---- Setup the screen fonts for the current control
  514.     On Error Resume Next
  515.     Cmdialog1.Flags = 1
  516.     Cmdialog1.FontName = VBMail.ActiveForm.ActiveControl.FontName
  517.     Cmdialog1.FontSize = VBMail.ActiveForm.ActiveControl.FontSize
  518.     Cmdialog1.FontBold = VBMail.ActiveForm.ActiveControl.FontBold
  519.     Cmdialog1.FontItalic = VBMail.ActiveForm.ActiveControl.FontItalic
  520.     Cmdialog1.Action = 4
  521.     If Err = 0 Then
  522.         VBMail.ActiveForm.ActiveControl.FontName = Cmdialog1.FontName
  523.         VBMail.ActiveForm.ActiveControl.FontSize = Cmdialog1.FontSize
  524.         VBMail.ActiveForm.ActiveControl.FontBold = Cmdialog1.FontBold
  525.         VBMail.ActiveForm.ActiveControl.FontItalic = Cmdialog1.FontItalic
  526.     End If
  527. End Sub
  528. Sub logoff_Click ()
  529. '----- LogOf
  530.     Call LogOffUser
  531. End Sub
  532. Sub Logon_Click ()
  533. '----- Logon to the mail system
  534.     On Error Resume Next
  535.     MapiSess.Action = 1
  536.     If Err <> 0 Then
  537.         MsgBox "Logon Failure: " + Error$
  538.     Else
  539.         Screen.MousePointer = 11
  540.         MapiMess.SessionID = MapiSess.SessionID
  541.         '------ Get the message count
  542.         GetMessageCount
  543.         '------ Load the mail list w/ envelope information
  544.         Screen.MousePointer = 11
  545.         Call LoadList(MapiMess)
  546.         Screen.MousePointer = 0
  547.         '------ Adjust the buttons as needed
  548.         Logon.Enabled = False
  549.         Logoff.Enabled = True
  550.         VBMail.SendCtl(MESSAGE_COMPOSE).Enabled = True
  551.         VBMail.SendCtl(MESSAGE_ReplyAll).Enabled = True
  552.         VBMail.SendCtl(MESSAGE_Reply).Enabled = True
  553.         VBMail.SendCtl(Message_Forward).Enabled = True
  554.         VBMail.PrintMessage.Enabled = True
  555.         VBMail.DispTools.Enabled = True
  556.         VBMail.rMsgList.Enabled = True
  557.         VBMail.EditDelete.Enabled = True
  558.       End If
  559. End Sub
  560. Sub MailOpts_Click ()
  561. '----- Display the Mail Options form
  562.     OptionType = OPTION_GENERAL
  563.     MailOptFrm.Show 1
  564. End Sub
  565. Sub MDIForm_Load ()
  566. '---- Ensure all the controls are sized as needed
  567.      TimeLbl = Time$
  568.      SendWithMapi = True
  569.      Call Picture1_Resize
  570.      Call Picture2_Resize
  571.      VBMail.MsgCountLbl = "Off Line"
  572. End Sub
  573. Sub Next_Click ()
  574. '---- View the next message in the list
  575.     If MailLst.MList.ListIndex <> MailLst.MList.ListCount - 1 Then
  576.         MailLst.MList.ItemData(MailLst.MList.ListIndex) = False
  577.         MailLst.MList.ListIndex = MailLst.MList.ListIndex + 1
  578.     End If
  579.     Call ViewNextMsg
  580. End Sub
  581. Sub Picture1_Resize ()
  582. Const TimeBoxStartOffset = 1200
  583. Const TimeBoxEndOffset = 60
  584. Const MsgBoxStartOffset = 60
  585. Const MsgBoxEndOffset = TimeBoxStartOffset + 90
  586. '---- Adjust the sizes of the lines and position the time label
  587.     TimeLbl.Left = Picture1.Width - TimeLbl.Width - 265
  588.     TopLine2(0).X2 = Picture1.Width
  589.     TopLine2(1).X2 = Picture1.Width
  590.     TimeBoxLine(0).X1 = Picture1.Width - TimeBoxStartOffset
  591.     TimeBoxLine(0).X2 = Picture1.Width - TimeBoxEndOffset
  592.     TimeBoxLine(1).X1 = Picture1.Width - TimeBoxStartOffset
  593.     TimeBoxLine(1).X2 = Picture1.Width - TimeBoxEndOffset
  594.     TimeBoxSide(0).X1 = Picture1.Width - TimeBoxStartOffset
  595.     TimeBoxSide(0).X2 = Picture1.Width - TimeBoxStartOffset
  596.     TimeBoxSide(1).X1 = Picture1.Width - TimeBoxEndOffset
  597.     TimeBoxSide(1).X2 = Picture1.Width - TimeBoxEndOffset
  598.     MsgBoxLine(0).X2 = Picture1.Width - MsgBoxEndOffset
  599.     MsgBoxLine(1).X2 = Picture1.Width - MsgBoxEndOffset
  600.     MsgBoxSide(1).X1 = Picture1.Width - MsgBoxEndOffset
  601.     MsgBoxSide(1).X2 = Picture1.Width - MsgBoxEndOffset
  602.     Picture1.Refresh
  603. End Sub
  604. Sub Picture2_Resize ()
  605. 'Adjust the positions of the lines
  606.     TopLine(0).X2 = Picture2.Width
  607.     TopLine(1).X2 = Picture2.Width
  608.     Picture2.Refresh
  609. End Sub
  610. Sub Previous_Click ()
  611. '---- View the Previous message in the list
  612.     If MailLst.MList.ListIndex <> 0 Then
  613.         MailLst.MList.ItemData(MailLst.MList.ListIndex) = False
  614.         MailLst.MList.ListIndex = MailLst.MList.ListIndex - 1
  615.     End If
  616.     Call ViewNextMsg
  617. End Sub
  618. Sub PrintMessage_Click ()
  619. '---- Print Mail
  620.     Call PrintMail
  621. End Sub
  622. Sub PrSetup_Click ()
  623. '----- Call the printer setup routine in the cmdialog control
  624. On Error Resume Next
  625.     Cmdialog1.Flags = &H40  'Printer Setup dialog only
  626.     Cmdialog1.Action = 5
  627. End Sub
  628. Sub rMsgList_Click ()
  629.         Screen.MousePointer = 11
  630.         GetMessageCount
  631.         Call LoadList(MapiMess)
  632.         Screen.MousePointer = 0
  633. End Sub
  634. Sub SendCtl_Click (Index As Integer)
  635. Dim NewMessage As New NewMsg
  636.     On Error Resume Next
  637.     'Index = 6: Compose New Message
  638.     '      = 7: Reply
  639.     '      = 8: Reply All
  640.     '      = 9: Forward
  641.     'Save header information and current note text
  642.     If Index > 6 Then
  643.         'SVNote = GetHeader(VBMAIL.MapiMess) + VBMAIL.MapiMess.MsgNoteText
  644.         SVNote = VBMail.MapiMess.MsgNoteText
  645.         SVNote = GetHeader(VBMail.MapiMess) + SVNote
  646.     End If
  647.     VBMail.MapiMess.Action = Index
  648.     'Set the new message text
  649.     If Index > 6 Then
  650.         VBMail.MapiMess.MsgNoteText = SVNote
  651.     End If
  652.     If SendWithMapi Then
  653.         VBMail.MapiMess.Action = MESSAGE_SENDDLG        'MAPI Send with Dialog
  654.     Else
  655.         Call LoadMessage(-1, NewMessage)            'Load Message into VBMail NewMSG Window
  656.     End If
  657. End Sub
  658. Sub ShowAB_Click ()
  659. On Error Resume Next
  660. '--------------------------------------------------------------
  661. '   Show Address for current message
  662. '--------------------------------------------------------------
  663.     VBMail.MapiMess.Action = MESSAGE_SHOWADBOOK
  664.     If Err Then
  665.         If Err <> 32001 Then        'User hit cancel
  666.             MsgBox "Error: " + Error$ + " occured trying to show the Address Book"
  667.         End If
  668.     Else
  669.         If TypeOf VBMail.ActiveForm Is NewMsg Then
  670.             Call UpdateRecips(VBMail.ActiveForm)
  671.         End If
  672.     End If
  673. End Sub
  674. Sub Timer1_Timer ()
  675. '----- Update the time label
  676.     TimeLbl = Time$
  677. End Sub
  678. Sub wa_Click (Index As Integer)
  679. '----- Arrange the windows as selected
  680.     VBMail.Arrange Index
  681. End Sub
  682.