home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / mapi / manager.sh / smh.dlg < prev    next >
Encoding:
Text File  |  1996-04-11  |  11.2 KB  |  216 lines

  1. // Fonts to use in dialogs
  2.  
  3. #ifdef _WIN32
  4. #define SHELL_FONT "MS Shell Dlg"
  5. #define SHELL_FONT_SIZE 8
  6. #else
  7. #define SHELL_FONT "MS Sans Serif"
  8. #define SHELL_FONT_SIZE 8
  9. #endif
  10.  
  11. SMH_WizardDialog DIALOG DISCARDABLE  0, 0, 200, 150
  12. STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  13. CAPTION "Sample Mail Handler Configuration"
  14. FONT SHELL_FONT_SIZE, SHELL_FONT
  15. BEGIN
  16.     LTEXT           "The simple mail handler can archive email that you have sent into a set of sub-folders of the 'Sent Mail' folder.  These messages are archived by send date into subfolders named according to the time period of the contained messages.",
  17.                     ID_SentMailTxt,0,0,180,40
  18.     CONTROL         "&Archive sent mail into monthly subfolders",ID_SentMail,
  19.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,42,170,10
  20.     CONTROL         "Archive sent mail monthly folders by &year",ID_SentMailYr,
  21.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,20,54,160,10
  22.  
  23.     LTEXT           "The simple mail handler can also archive email that you have deleted into a set of sub-folders of the 'Deleted Items' folder.  These messages are archived by recieved date into subfolders named according to the time period of the contained messages.",
  24.                     ID_DeletedTxt,0,0,180,40
  25.     CONTROL         "&Archive deleted mail into monthly subfolders",ID_Deleted
  26.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,42,170,10
  27.     CONTROL         "Archive deleted mail monthly folders by &year",ID_DeletedYr
  28.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,20,54,160,10
  29.  
  30.     LTEXT           "The sample mail handler can filter incoming messages to folders -- other than the default inbox -- based on the message's list of recipients, the subject, or whether the message contains attachments.  This is a handy way to organize large amounts of mail.",
  31.                     ID_InboundTxt,0,0,180,40
  32.     CONTROL         "Enable the filtering of inbound messages",ID_Inbound,
  33.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,47,160,10
  34.  
  35.     LTEXT           "The sample mail handler can create a folder in the default store that will find and display all unread messages contained in the store.  The folder will be called 'Unread Messages' and will be located as a top-level folder in the default store.",
  36.                     ID_UnreadTxt,0,0,180,40
  37.     LTEXT           "This feature is most useful when filtering is enabled.",
  38.                     ID_UnreadTxt2,0,40,180,10
  39.     CONTROL         "Add unread messages folder to hierarchy",ID_Unread,
  40.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,52,160,10
  41. END
  42.  
  43. SMH_ExclusionEdit DIALOG DISCARDABLE  19, 26, 233, 46
  44. STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  45. CAPTION "New Message Class Exclusion"
  46. FONT SHELL_FONT_SIZE, SHELL_FONT
  47. BEGIN
  48.     LTEXT           "&Exclude:",ID_Txt1,7,9,40,8
  49.     EDITTEXT        ID_ExclusionClass,47,7,123,12,ES_AUTOHSCROLL
  50.     DEFPUSHBUTTON   "OK",IDOK,178,7,44,14
  51.     PUSHBUTTON      "Cancel",IDCANCEL,178,24,44,14
  52. END
  53.  
  54. SMH_FilterPage DIALOG DISCARDABLE  0, 0, 200, 141
  55. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  56. CAPTION ""
  57. FONT SHELL_FONT_SIZE, SHELL_FONT
  58. BEGIN
  59.     LTEXT           "&Filters:",ID_Txt1,7,8,80,10
  60.     LISTBOX         ID_FilterOrderLB,7,18,160,95, 
  61.                     LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
  62.     CONTROL         "Move &Up", ID_FilterUp, "Button", BS_OWNERDRAW | WS_GROUP | WS_TABSTOP, 
  63.                     174, 30, 10, 10
  64.     CONTROL         "Move &Down", ID_FilterDown, "Button", BS_OWNERDRAW | WS_TABSTOP, 
  65.                     174, 46, 10, 10
  66.     PUSHBUTTON      "&New...",ID_NewFilter,14,120,44,14
  67.     PUSHBUTTON      "P&roperties...",ID_EditFilter,65,120,44,14
  68.     PUSHBUTTON      "De&lete",ID_RmvFilter,115,120,44,14
  69.     PUSHBUTTON      "&Import...", ID_Import,40,140,44,14
  70.     PUSHBUTTON      "E&xport...", ID_Export,91,140,44,14
  71. END
  72.  
  73. SMH_GeneralPage DIALOG DISCARDABLE  0, 0, 200, 161
  74. STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  75. CAPTION ""
  76. FONT SHELL_FONT_SIZE, SHELL_FONT
  77. BEGIN
  78.     GROUPBOX        "Incoming Mail",ID_InboundGrp,7,8,185,38,WS_GROUP
  79.     CONTROL         "Enable &filtering of inbound messages",ID_Inbound,
  80.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,19,170,10
  81.     CONTROL         "Add &unread messages folder to hierarchy",ID_Unread,
  82.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,31,165,10
  83.     GROUPBOX        "Sent Mail",ID_SentMailGrp,7,50,185,50,WS_GROUP
  84.     CONTROL         "Add &recipients to personal address book",ID_AddToPab,
  85.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,61,170,10
  86.     CONTROL         "&Archive sent mail into monthly subfolders",ID_SentMail,
  87.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,73,165,10
  88.     CONTROL         "Archive sent mail monthly folders by &year",ID_SentMailYr,
  89.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,22,85,170,10
  90.     GROUPBOX        "Deleted Mail",ID_DeletedGrp,7,104,185,38,WS_GROUP
  91.     CONTROL         "Archive &deleted mail into monthly subfolders",ID_Deleted
  92.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,115,170,10
  93.     CONTROL         "Archive deleted mail &monthly folders by year",ID_DeletedYr
  94.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,22,127,165,10
  95. END
  96.  
  97. SMH_ExclusionPage DIALOG DISCARDABLE  0, 0, 200, 161
  98. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  99. CAPTION ""
  100. FONT SHELL_FONT_SIZE, SHELL_FONT
  101. BEGIN
  102.     LTEXT           "Message Classes E&xcluded from Filters:",ID_Txt1,7,8,160,10
  103.     LISTBOX         ID_ExclusionLB,7,18,160,95, 
  104.                     LBS_NOINTEGRALHEIGHT | LBS_SORT | WS_VSCROLL | WS_TABSTOP
  105.     PUSHBUTTON      "&New...",ID_NewExclusion,36,120,44,14
  106.     PUSHBUTTON      "&Delete",ID_RmvExclusion,93,120,44,14
  107. END
  108.  
  109. SMH_OofPage DIALOG DISCARDABLE  0, 0, 220, 170
  110. STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  111. CAPTION ""
  112. FONT SHELL_FONT_SIZE, SHELL_FONT
  113. BEGIN
  114.     LTEXT           "Out-of-office &Message:",ID_Txt1,7,8,80,10
  115.     CONTROL         "", ID_OofText, RICHEDIT_CLASS, 
  116.                     ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | 
  117.                     ES_SAVESEL | ES_NOHIDESEL | ES_SUNKEN |
  118.                     WS_VSCROLL | WS_TABSTOP | WS_CLIPCHILDREN,
  119.                     7,35,203,110
  120.     CONTROL         "&Enable out of office handling",ID_OofEnabled,
  121.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,150,203,10
  122. END
  123.  
  124. SMH_PropertiesPage DIALOG DISCARDABLE  0, 0, 250, 225
  125. STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  126. CAPTION ""
  127. FONT SHELL_FONT_SIZE, SHELL_FONT
  128. BEGIN
  129.     LTEXT           "Filter &Name:",ID_Txt1,8,14,43,8
  130.     EDITTEXT        ID_Name,55,12,189,12,ES_AUTOHSCROLL
  131.     GROUPBOX        "Filter On",ID_TypeGrp,7,28,238,55,WS_GROUP
  132.     CONTROL         "Sub&ject",ID_Subject,"Button",
  133.                     BS_AUTORADIOBUTTON | WS_TABSTOP,12,40,71,10
  134.     CONTROL         "&Message Sent By",ID_Sender,"Button",
  135.                     BS_AUTORADIOBUTTON,12,53,71,10
  136.     CONTROL         "Any &Recipient",ID_AnyRecip,"Button",
  137.                     BS_AUTORADIOBUTTON,12,66,71,10
  138.     CONTROL         "&To: Recipient",ID_ToRecip,"Button",
  139.                     BS_AUTORADIOBUTTON,90,40,71,10
  140.     CONTROL         "&CC: Recipient",ID_CcRecip,"Button",
  141.                     BS_AUTORADIOBUTTON,90,53,71,10
  142.     CONTROL         "&BCC: Recipient",ID_BccRecip,"Button",
  143.                     BS_AUTORADIOBUTTON,90,66,71,10
  144.     CONTROL         "&Message Te&xt",ID_Body,"Button",
  145.                     BS_AUTORADIOBUTTON,168,40,71,10
  146.     CONTROL         "Message C&lass",ID_MsgClass,"Button",
  147.                     BS_AUTORADIOBUTTON,168,53,71,10
  148.     CONTROL         "&Has Attachments",ID_HasAttach,"Button",
  149.                     BS_AUTORADIOBUTTON,168,66,71,10
  150.     LTEXT           "&Value contains:",ID_Txt2,8,92,56,8
  151.     EDITTEXT        ID_Value,70,90,174,12,ES_AUTOHSCROLL
  152.     CONTROL         "F&ilter messages that do not match this criteria",ID_NotMatch,
  153.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP, 8,105,220,12
  154.     GROUPBOX        "Filter Target",ID_TargetGrp,7,120,238,110,WS_GROUP
  155.     CONTROL         "Lea&ve message in inbox", ID_LeaveMsg,"Button",
  156.                     BS_AUTORADIOBUTTON | WS_TABSTOP,12,130,210,10
  157.     CONTROL         "&Delete message from store (not move to 'Deleted Items')",ID_DeleteMsg,"Button",
  158.                     BS_AUTORADIOBUTTON | WS_TABSTOP,12,142,210,10
  159.     CONTROL         "&Filter message to target store/folder:",ID_FilterMsg,"Button",
  160.                     BS_AUTORADIOBUTTON,12,154,210,10
  161.     LTEXT           "Target &Store:",ID_Txt3,18,168,51,8
  162.  
  163.     CONTROL         "", ID_Store, "ComboBox", CBS_DROPDOWN | WS_VSCROLL | 
  164.                     CBS_SORT | CBS_AUTOHSCROLL | WS_TABSTOP, 70, 166, 169, 60
  165.  
  166.  
  167.  
  168. /*  EDITTEXT        ID_Store,70,166,169,12,ES_AUTOHSCROLL */
  169.     LTEXT           "Tar&get Folder:",ID_Txt4,18,182,51,8
  170.     EDITTEXT        ID_Folder,70,180,169,12,ES_AUTOHSCROLL
  171.     CONTROL         "&Archive the filter's target folder into monthly subfolders", ID_ArchTarg,
  172.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP, 18,195,210,12
  173.     CONTROL         "Archive the filter's target montly subfolders by &year",ID_ArchTargYr,
  174.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP, 28,207,210,12
  175. END
  176.  
  177. SMH_ResponsePage DIALOG DISCARDABLE  0, 0, 220, 170
  178. STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  179. CAPTION ""
  180. FONT SHELL_FONT_SIZE, SHELL_FONT
  181. BEGIN
  182.     CONTROL         "&Send automated response", ID_ReplyFwd,
  183.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP, 8,10,230,12
  184.     GROUPBOX        "Reply\\Forward",ID_TypeGrp,7,27,238,84,WS_GROUP
  185.     CONTROL         "&Reply",ID_Reply,"Button",
  186.                     BS_AUTORADIOBUTTON | WS_TABSTOP,12,38,71,10
  187.     CONTROL         "&Forward",ID_Forward,"Button",
  188.                     BS_AUTORADIOBUTTON,12,50,71,10
  189.     PUSHBUTTON      "To:...",ID_PickRecip,18,63,44,14
  190.     EDITTEXT        ID_Recip,68,63,165,38,ES_AUTOHSCROLL|ES_MULTILINE
  191.     LTEXT           "&Annotation:",ID_Txt5,8,113,51,8
  192.     CONTROL         "", ID_Annotation, RICHEDIT_CLASS, 
  193.                     ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | 
  194.                     ES_SAVESEL | ES_NOHIDESEL | ES_SUNKEN |
  195.                     WS_VSCROLL | WS_TABSTOP | WS_CLIPCHILDREN,
  196.                     8,140,236,109
  197. END
  198.  
  199. SMH_SoundsPage DIALOG DISCARDABLE  0, 0, 200, 270
  200. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  201. CAPTION ""
  202. FONT SHELL_FONT_SIZE, SHELL_FONT
  203. BEGIN
  204.     CONTROL         "&Enabled new mail sounds", ID_Sound,
  205.                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP, 8,10,230,12
  206.     GROUPBOX        "Sounds",ID_SoundsGrp,7,27,238,80,WS_GROUP
  207.     LTEXT           "&High priority:",ID_Txt2,12,45,50,8
  208.     EDITTEXT        ID_HiPri,64,44,175,12,ES_AUTOHSCROLL
  209.     LTEXT           "&Normal priority:",ID_Txt3,12,60,50,8
  210.     EDITTEXT        ID_NormPri,64,59,175,12,ES_AUTOHSCROLL
  211.     LTEXT           "&Low priority:",ID_Txt4,12,75,50,8
  212.     EDITTEXT        ID_LoPri,64,74,175,12,ES_AUTOHSCROLL
  213. END
  214.  
  215.  
  216.