SMH.DLG
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:11k
源码类别:

Windows编程

开发平台:

Visual C++

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