home *** CD-ROM | disk | FTP | other *** search
/ On Hand / On_Hand_From_Softbank_1994_Release_2_Disc_2_1994.iso / 00202 / s / disk3 / vbmail.fr_ / vbmail.bin
Text File  |  1993-04-28  |  23KB  |  725 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. End
  447. Sub About_Click ()
  448.     MsgBox "Sample Mail Application", 0, "VB Mail"
  449. End Sub
  450.  
  451. Sub Delete_Click ()
  452. '--- Delete a mail message
  453.  
  454.     '---- In List view all selected messages are deleted
  455.     If TypeOf VBMail.ActiveForm Is MsgView Then
  456.         Call DeleteMessage
  457.     ElseIf TypeOf VBMail.ActiveForm Is MailLst Then
  458.     '----- Feature Addition: Added code to handle deleting multiple selection
  459.         VBMail.MapiMess.MsgIndex = MailLst.MList.ListIndex
  460.         Call DeleteMessage
  461.     End If
  462.  
  463. End Sub
  464.  
  465. Sub DispTools_Click ()
  466.     DispTools.Checked = Not DispTools.Checked
  467.     MailLst.Tools.Visible = DispTools.Checked
  468.  
  469.     
  470.     If MailLst.Tools.Visible Then
  471.         Factor = 1
  472.         ToolsSize% = -MailLst.Tools.Height
  473.     Else
  474.         Factor = -1
  475.         ToolsSize% = 0
  476.     End If
  477.  
  478.     Select Case MailLst.WindowState
  479.         Case 0    'Grow or Shrink the form to reflect addition or deletion of Toolbar
  480.             MailLst.Height = MailLst.Height + (Factor * MailLst.Tools.Height)
  481.         Case 2    'If maximized, grow or shrink the listbox size
  482.             MailLst.MList.Height = ScaleHeight - 90 - MailLst.MList.Top + ToolsSize%
  483.     End Select
  484. End Sub
  485.  
  486. Sub EditDelete_Click ()
  487. '--- Delete the items in the list
  488. On Error GoTo Trap
  489.     If TypeOf VBMail.ActiveForm Is MailLst Then
  490.         Call Delete_Click
  491.     End If
  492.     Exit Sub
  493.  
  494. Trap:
  495.     'If an error occurs, there is probably no active form
  496.     'Leave the sub
  497.     Exit Sub
  498. End Sub
  499.  
  500. Sub Exit_Click ()
  501. '--- Close the app; make sure to logoff
  502.     If MapiSess.SessionID <> 0 Then
  503.         Call logoff_Click
  504.     End If
  505.     End
  506. End Sub
  507.  
  508. Sub FontPrt_Click ()
  509. '---- Setup the printer fonts
  510.     On Error Resume Next
  511.     Cmdialog1.Flags = 2
  512.     Cmdialog1.FontName = Printer.FontName
  513.     Cmdialog1.FontSize = Printer.FontSize
  514.     Cmdialog1.FontBold = Printer.FontBold
  515.     Cmdialog1.FontItalic = Printer.FontItalic
  516.     Cmdialog1.Action = 4
  517.     If Err = 0 Then
  518.         Printer.FontName = Cmdialog1.FontName
  519.         Printer.FontSize = Cmdialog1.FontSize
  520.         Printer.FontBold = Cmdialog1.FontBold
  521.         Printer.FontItalic = Cmdialog1.FontItalic
  522.     End If
  523.  
  524. End Sub
  525.  
  526. Sub FontScreen_Click ()
  527. '---- Setup the screen fonts for the current control
  528.     On Error Resume Next
  529.     Cmdialog1.Flags = 1
  530.     Cmdialog1.FontName = VBMail.ActiveForm.ActiveControl.FontName
  531.     Cmdialog1.FontSize = VBMail.ActiveForm.ActiveControl.FontSize
  532.     Cmdialog1.FontBold = VBMail.ActiveForm.ActiveControl.FontBold
  533.     Cmdialog1.FontItalic = VBMail.ActiveForm.ActiveControl.FontItalic
  534.     Cmdialog1.Action = 4
  535.     If Err = 0 Then
  536.         VBMail.ActiveForm.ActiveControl.FontName = Cmdialog1.FontName
  537.         VBMail.ActiveForm.ActiveControl.FontSize = Cmdialog1.FontSize
  538.         VBMail.ActiveForm.ActiveControl.FontBold = Cmdialog1.FontBold
  539.         VBMail.ActiveForm.ActiveControl.FontItalic = Cmdialog1.FontItalic
  540.     End If
  541. End Sub
  542.  
  543. Sub logoff_Click ()
  544. '----- LogOf
  545.     Call LogOffUser
  546. End Sub
  547.  
  548. Sub Logon_Click ()
  549. '----- Logon to the mail system
  550.     On Error Resume Next
  551.     MapiSess.Action = 1
  552.     If Err <> 0 Then
  553.         MsgBox "Logon Failure: " + Error$
  554.     Else
  555.         Screen.MousePointer = 11
  556.         MapiMess.SessionID = MapiSess.SessionID
  557.         '------ Get the message count
  558.         GetMessageCount
  559.         '------ Load the mail list w/ envelope information
  560.         Screen.MousePointer = 11
  561.         Call LoadList(MapiMess)
  562.         Screen.MousePointer = 0
  563.         '------ Adjust the buttons as needed
  564.         Logon.Enabled = False
  565.         Logoff.Enabled = True
  566.         VBMail.SendCtl(MESSAGE_COMPOSE).Enabled = True
  567.         VBMail.SendCtl(MESSAGE_ReplyAll).Enabled = True
  568.         VBMail.SendCtl(MESSAGE_Reply).Enabled = True
  569.         VBMail.SendCtl(Message_Forward).Enabled = True
  570.         VBMail.PrintMessage.Enabled = True
  571.         VBMail.DispTools.Enabled = True
  572.         VBMail.rMsgList.Enabled = True
  573.         VBMail.EditDelete.Enabled = True
  574.       End If
  575. End Sub
  576.  
  577. Sub MailOpts_Click ()
  578. '----- Display the Mail Options form
  579.     OptionType = OPTION_GENERAL
  580.     MailOptFrm.Show 1
  581. End Sub
  582.  
  583. Sub MDIForm_Load ()
  584. '---- Ensure all the controls are sized as needed
  585.      TimeLbl = Time$
  586.      SendWithMapi = True
  587.      Call Picture1_Resize
  588.      Call Picture2_Resize
  589.      VBMail.MsgCountLbl = "Off Line"
  590. End Sub
  591.  
  592. Sub Next_Click ()
  593. '---- View the next message in the list
  594.     If MailLst.MList.ListIndex <> MailLst.MList.ListCount - 1 Then
  595.         MailLst.MList.ItemData(MailLst.MList.ListIndex) = False
  596.         MailLst.MList.ListIndex = MailLst.MList.ListIndex + 1
  597.     End If
  598.     Call ViewNextMsg
  599. End Sub
  600.  
  601. Sub Picture1_Resize ()
  602. Const TimeBoxStartOffset = 1200
  603. Const TimeBoxEndOffset = 60
  604. Const MsgBoxStartOffset = 60
  605. Const MsgBoxEndOffset = TimeBoxStartOffset + 90
  606.  
  607. '---- Adjust the sizes of the lines and position the time label
  608.     TimeLbl.Left = Picture1.Width - TimeLbl.Width - 265
  609.     TopLine2(0).X2 = Picture1.Width
  610.     TopLine2(1).X2 = Picture1.Width
  611.  
  612.     TimeBoxLine(0).X1 = Picture1.Width - TimeBoxStartOffset
  613.     TimeBoxLine(0).X2 = Picture1.Width - TimeBoxEndOffset
  614.  
  615.     TimeBoxLine(1).X1 = Picture1.Width - TimeBoxStartOffset
  616.     TimeBoxLine(1).X2 = Picture1.Width - TimeBoxEndOffset
  617.  
  618.     TimeBoxSide(0).X1 = Picture1.Width - TimeBoxStartOffset
  619.     TimeBoxSide(0).X2 = Picture1.Width - TimeBoxStartOffset
  620.  
  621.     TimeBoxSide(1).X1 = Picture1.Width - TimeBoxEndOffset
  622.     TimeBoxSide(1).X2 = Picture1.Width - TimeBoxEndOffset
  623.  
  624.     MsgBoxLine(0).X2 = Picture1.Width - MsgBoxEndOffset
  625.     MsgBoxLine(1).X2 = Picture1.Width - MsgBoxEndOffset
  626.  
  627.     MsgBoxSide(1).X1 = Picture1.Width - MsgBoxEndOffset
  628.     MsgBoxSide(1).X2 = Picture1.Width - MsgBoxEndOffset
  629.  
  630.     Picture1.Refresh
  631. End Sub
  632.  
  633. Sub Picture2_Resize ()
  634. 'Adjust the positions of the lines
  635.     TopLine(0).X2 = Picture2.Width
  636.     TopLine(1).X2 = Picture2.Width
  637.     Picture2.Refresh
  638. End Sub
  639.  
  640. Sub Previous_Click ()
  641. '---- View the Previous message in the list
  642.     If MailLst.MList.ListIndex <> 0 Then
  643.         MailLst.MList.ItemData(MailLst.MList.ListIndex) = False
  644.         MailLst.MList.ListIndex = MailLst.MList.ListIndex - 1
  645.     End If
  646.     Call ViewNextMsg
  647. End Sub
  648.  
  649. Sub PrintMessage_Click ()
  650. '---- Print Mail
  651.     Call PrintMail
  652. End Sub
  653.  
  654. Sub PrSetup_Click ()
  655. '----- Call the printer setup routine in the cmdialog control
  656. On Error Resume Next
  657.     Cmdialog1.Flags = &H40  'Printer Setup dialog only
  658.     Cmdialog1.Action = 5
  659. End Sub
  660.  
  661. Sub rMsgList_Click ()
  662.         Screen.MousePointer = 11
  663.         GetMessageCount
  664.         Call LoadList(MapiMess)
  665.         Screen.MousePointer = 0
  666. End Sub
  667.  
  668. Sub SendCtl_Click (Index As Integer)
  669. Dim NewMessage As New NewMsg
  670.     On Error Resume Next
  671.  
  672.     'Index = 6: Compose New Message
  673.     '      = 7: Reply
  674.     '      = 8: Reply All
  675.     '      = 9: Forward
  676.  
  677.     'Save header information and current note text
  678.     If Index > 6 Then
  679.         'SVNote = GetHeader(VBMAIL.MapiMess) + VBMAIL.MapiMess.MsgNoteText
  680.         SVNote = VBMail.MapiMess.MsgNoteText
  681.         SVNote = GetHeader(VBMail.MapiMess) + SVNote
  682.     End If
  683.  
  684.     VBMail.MapiMess.Action = Index
  685.  
  686.     'Set the new message text
  687.     If Index > 6 Then
  688.         VBMail.MapiMess.MsgNoteText = SVNote
  689.     End If
  690.  
  691.     If SendWithMapi Then
  692.         VBMail.MapiMess.Action = MESSAGE_SENDDLG        'MAPI Send with Dialog
  693.     Else
  694.         Call LoadMessage(-1, NewMessage)            'Load Message into VBMail NewMSG Window
  695.     End If
  696. End Sub
  697.  
  698. Sub ShowAB_Click ()
  699. On Error Resume Next
  700. '--------------------------------------------------------------
  701. '   Show Address for current message
  702. '--------------------------------------------------------------
  703.     VBMail.MapiMess.Action = MESSAGE_SHOWADBOOK
  704.     If Err Then
  705.         If Err <> 32001 Then        'User hit cancel
  706.             MsgBox "Error: " + Error$ + " occured trying to show the Address Book"
  707.         End If
  708.     Else
  709.         If TypeOf VBMail.ActiveForm Is NewMsg Then
  710.             Call UpdateRecips(VBMail.ActiveForm)
  711.         End If
  712.     End If
  713. End Sub
  714.  
  715. Sub Timer1_Timer ()
  716. '----- Update the time label
  717.     TimeLbl = Time$
  718. End Sub
  719.  
  720. Sub wa_Click (Index As Integer)
  721. '----- Arrange the windows as selected
  722.     VBMail.Arrange Index
  723. End Sub
  724.  
  725.