home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / w / wa0729.zip / MAIN.FRM (.txt) < prev    next >
Visual Basic Form  |  1992-11-11  |  11KB  |  273 lines

  1. VB Mapi Demo Program
  2. wwwwwwwwwwwww
  3. Form1%
  4. Compose_BTN
  5. &Compose
  6. Delete_BTN
  7. &Delete
  8. Read_BTN
  9. &Read
  10. New_BTN
  11. SubjectList
  12. IdList
  13. Heading_LBL
  14. Messages:                      
  15. Options_MENU
  16. Options
  17. Logon_MENU
  18. Logon
  19. Logoff_MENU
  20. Logoff
  21. Status_MENU
  22. Status Window
  23. PopupErrors_MENU
  24. Popup Errors
  25. Command1_Clickk
  26. retcode
  27.     MAPILogon
  28. Form1
  29. MAPISessoin
  30. MapiSession
  31. Logon_Clickx
  32. Text]
  33. SessionWin
  34. Logoff_Click
  35. MAPILogoff
  36. SessionWin_Change
  37. Send_Click5
  38. MAPIMessage
  39.     MapiRecip
  40. MapiFile
  41. MAPISendMessage
  42. Subject@
  43. NoteText
  44. RecipCount
  45.     FileCount;
  46. MAPISendMail
  47. Nameg
  48.     RecipType/
  49. MAPI_TOK
  50. RecipClass$
  51. MAPI_CC
  52. FileName|
  53. config'
  54. FileType
  55. PathName
  56. Position
  57. Save_Click
  58. MAPISaveMail
  59. FindNext_Click
  60. MAPIFindNext
  61. ReadMail_Click
  62. MAPIReadMail
  63. MsgId
  64. Form_Click
  65. Recips
  66. Files
  67. SessionX
  68. UIParam
  69.     MessageID
  70. Flags
  71. Reservedq
  72. Message
  73. Orig?
  74. nFiles
  75. nRecipsS
  76. BMAPIReadMail
  77. SUCCESS_SUCCESS
  78. BMAPIGetReadMail
  79. elseEnd
  80. IfEnd
  81. MAPIAddressX
  82. Caption
  83. Label
  84. nRecipients
  85. Recipients
  86. nNewRecips
  87.     NewRecips
  88. NewRecipients
  89. RecipientCount,
  90. BMAPIAddress5
  91. nEditFields@
  92. Labels
  93. BMAPIGetAddressN
  94. Body_Change
  95.     ID_Changek
  96. Label1_Click{
  97. Label2_Click
  98. Label3_Click
  99. DateReceived
  100. ConversationIDk
  101. MessageType
  102. MAPI_NO_MESSAGES.
  103. begin
  104. Retcode_Change)
  105. msgid1$
  106. ErrorMsg
  107. errtext
  108. errtext_ChangeH
  109. ErrMsg
  110. MailList
  111. Fomr1
  112. List_Click
  113. List.
  114. ListHdr
  115. @    Form_Load
  116. From1
  117. Logoff
  118. Enable
  119. FALSE
  120. Logon|
  121. Enabledt
  122. Delete_ClickU
  123. MAPIDelete
  124. MAPIDeleteMail
  125.     ListIndex/
  126. Address_Click    
  127. reciph
  128. asLong@
  129. Class
  130. Address
  131. ListHdr_Click7    
  132. Resolve_BTN_Click
  133. MapiResolveName
  134. hSession
  135.     Recipient
  136. Rcpnt
  137. MapiRecipient
  138. Details_BTN_ClickO
  139. MAPIDetails
  140.     ListCount=
  141. Logon_BTN_Click
  142.     Logon_BTN
  143. SUCCESS*
  144. count
  145. MAPI_LOGON_UI
  146. MAPI_USER_ABORTk
  147. MAPI_E_FAILURE
  148. MAPI_E_TOO_MANY_SESSIONSY
  149. MAPI_E_LOGON_FAILURE
  150. Form2q
  151. Logoff_BTN[    
  152. MAPI_E_USER_ABORT
  153. Status
  154. ErrCode_EDIT
  155. ErrString_EDIT
  156. ErrCode
  157. Operation_EDITQ
  158. Session_EDIT
  159. ignore
  160.     ToolForm1e    
  161. Tools
  162. LoggedInAs_TXT
  163. DisplayStatus
  164. MAPI_E_LOGIN_FAILUREm    @
  165. Form_Unload
  166. Cancel
  167. List_DblClick&    
  168. selected
  169. StoreInList
  170. index
  171. EndLoopI    
  172. IdList
  173. MapiRecipReDimm
  174. SubjectList
  175. Delete_BTN_Click
  176. New_BTN_Click
  177. Read_BTN_Click
  178. Save_BTN_Click
  179. xxxxxx
  180. SubjectList_Click
  181. SubjectList_DblClick
  182. Unhide
  183. Compose4
  184. MAPI_E_TOO_MANY_SESSION
  185. Options_MENU_Click
  186. Logoff_MENU_Click
  187. Logon_MENU_Click
  188. Compose_BTN_Click
  189. display
  190. results
  191.     OldCursor
  192. MousePointer
  193. Status_MENU_Click
  194. Status_MENU
  195. Checked
  196. MsgId_EDIT
  197. PopupError_MENU
  198. PopupErrors
  199. PopupErrors_MENU
  200. PopupErrors_MENU_Click
  201. Compose_BTN_Click
  202.  Load and display the compose window
  203.  when the user clicks on the compose
  204.  buttonu
  205. Delete_BTN_Click
  206.  If there's no mail listed, then
  207.  just exit this subroutine
  208.  Get the list index of the selectede
  209.  item, then retrive it's id from
  210.  an associated msgid list.  
  211.  Call MAPIDeleteMail with the msgid of the
  212.  mail to be deleted.
  213. Delete Mail
  214.  if the call was successful, then we deletee
  215.  the msgid from IdList and the subject from 
  216.  the SubjectList.L
  217. Form_Load
  218.  Display the hourglass cursor until*
  219.  the ReadMail call completes
  220.  Log the user on.r
  221.  Display information in the status windowi
  222. Logon
  223. Tools.Logoff_BTN.Enabled = TRUE*
  224. Tools.Logon_BTN.Enabled = FALSE*
  225.  Find all the user's mail and display it
  226.  in the SubjectList.  The correspondingn
  227.  message id's are stored in the IdList.L
  228.  Read the mail and display the subject
  229.  in the SubjectListe
  230.  Highlight the first item in the list 
  231.  Set status display in status window
  232.  Display the tools and status windowsn
  233. Tools.Show
  234.  Restore original mouse pointeri
  235. Form_Unload
  236.  Mapi Demo is shutting down, unloadn
  237.  any displayed windows and Logoffo
  238. Logoff_MENU_Click
  239.  Call MAPILogoff, display resultss
  240.  and set the MapiSession global var.
  241. Logoff
  242. Logon_MENU_Click
  243.  Call MAPILogonL
  244. Logging On
  245.  Clear out the msg id listbox*
  246.  Retrive the user's mail and display the
  247.  subject line from each message.  The messages
  248.  mail id is store in the IdList, and the
  249.  Subject is stored in the SubjectListt
  250.  Highlight the first item in the subject list
  251. New_BTN_Click
  252.  Display the hourglass cursor until*
  253.  the ReadMail call completes
  254.  Clear out the msg id listbox*
  255.  Retrieve messages until we get an error
  256.  or no more message to get
  257.  Display the subject in the SubjectListe
  258.  and add the message id to the IDListt
  259. Find new mail
  260.  Highlight the first item in the subject list 
  261. PopupErrors_MENU_Click
  262. Read_BTN_Click
  263.  Ignore the read request if there'se
  264.  no mail available to read
  265.  Load the View window to display
  266.  the mail messages
  267. Status_MENU_Click
  268. SubjectList_Click
  269.  Set the MsgId Global Var*
  270. SubjectList_DblClick
  271.  Set the MsgId Global var and load the
  272.  View window to display the mail message
  273.