Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

234 lines
9.6 KiB

  1. #include <windows.h>
  2. //#include <commctrl.h>
  3. #ifndef WIN16
  4. #include <winver.h>
  5. #endif // !WIN16
  6. #include "resource.h"
  7. #include <ntverp.h>
  8. #define VER_FILETYPE VFT_APP
  9. #define VER_FILESUBTYPE VFT_UNKNOWN
  10. #define VER_FILEDESCRIPTION_STR "Outlook Express MimeEditor Pad"
  11. #define VER_INTERNALNAME_STR "MEPAD"
  12. #define VER_ORIGINALFILENAME_STR "MEPAD.exe"
  13. #define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR
  14. #include <common.ver>
  15. idiApp ICON DISCARDABLE "mepad.ico"
  16. idbToolbar BITMAP DISCARDABLE "toolbar.bmp"
  17. idmrMainMenu MENUEX DISCARDABLE
  18. BEGIN
  19. POPUP "&File", idmPopupFile
  20. BEGIN
  21. MENUITEM "&New\tCtrl+N", idmNew
  22. MENUITEM "&Open\tCtrl+O", idmOpen
  23. MENUITEM "&Save As", idmSaveAs
  24. MENUITEM "", -1, MFT_SEPARATOR
  25. MENUITEM "&Print\tCtrl+P", idmPrint
  26. MENUITEM "", -1, MFT_SEPARATOR
  27. MENUITEM "&Close\tAlt+F4", idmClose
  28. END
  29. POPUP "&Edit", idmPopupEdit
  30. BEGIN
  31. MENUITEM "&Undo\tCtrl+Z", idmUndo
  32. MENUITEM "&Redo\tCtrl+Y", idmRedo
  33. MENUITEM "", -1, MFT_SEPARATOR
  34. MENUITEM "&Cut\tCtrl+X", idmCut
  35. MENUITEM "&Copy\tCtrl+C", idmCopy
  36. MENUITEM "&Paste\tCtrl+V", idmPaste
  37. MENUITEM "", -1, MFT_SEPARATOR
  38. MENUITEM "&Find\tCtrl+F", idmFind
  39. MENUITEM "&Select All\tCtrl+A", idmSelectAll
  40. MENUITEM "", -1, MFT_SEPARATOR
  41. MENUITEM "&HTML Mode", idmHTMLMode
  42. MENUITEM "", -1, MFT_SEPARATOR
  43. MENUITEM "&Rot 13\t", idmRot13
  44. MENUITEM "&Background Picture...\t", idmBackground
  45. MENUITEM "&Edit Document", idmEditDocument
  46. END
  47. POPUP "&View", idmPopupView
  48. BEGIN
  49. MENUITEM "&Toolbar", idmToggleToolbar
  50. MENUITEM "&Status Bar", idmToggleStatusbar
  51. MENUITEM "", -1, MFT_SEPARATOR
  52. MENUITEM "&No Header", idmNoHeader
  53. MENUITEM "&Preview Header", idmPreview
  54. MENUITEM "&Mini Header", idmMiniHeader
  55. MENUITEM "&Format Bar", idmFormatBar
  56. MENUITEM "", -1, MFT_SEPARATOR
  57. MENUITEM "&Language...", idmLang
  58. END
  59. POPUP "&Format"
  60. BEGIN
  61. MENUITEM "&Font", idmFont
  62. MENUITEM "&Paragraph", idmPara
  63. END
  64. POPUP "&Insert"
  65. BEGIN
  66. MENUITEM "&Text File", idmInsertFile
  67. END
  68. POPUP "&Tools", idmPopupTools
  69. BEGIN
  70. MENUITEM "&Preivew Format", idmFmtPreview
  71. MENUITEM "&Spelling", idmSpelling
  72. MENUITEM "&Options", idmOptions
  73. END
  74. POPUP "&Window", idmPopupWindow
  75. BEGIN
  76. MENUITEM "&Cascade", idmCascade
  77. MENUITEM "&Tile", idmTile
  78. END
  79. POPUP "&Test"
  80. BEGIN
  81. MENUITEM "&SaveAsMHTML", idmSaveAsMHTML
  82. MENUITEM "&Save As Stationery", idmSaveAsStationery
  83. MENUITEM "&SetDocumentText", idmSetText
  84. MENUITEM "", -1, MFT_SEPARATOR
  85. MENUITEM "Set background to RED", idmTestBackRed
  86. MENUITEM "Set text selection background to RED", idmTestForeRed
  87. END
  88. POPUP "&Help", idmPopupHelp
  89. BEGIN
  90. MENUITEM "&About MePad", idmAbout
  91. END
  92. END
  93. STRINGTABLE DISCARDABLE
  94. BEGIN
  95. (idmPopupFile+MH_BASE) "Contains commands for working with the selected items."
  96. (idmNew+MH_BASE) "New document"
  97. (idmOpen+MH_BASE) "Opens a file."
  98. (idmSave+MH_BASE) "Save"
  99. (idmSaveAs+MH_BASE) "Save As"
  100. (idmPageSetup+MH_BASE) "Enables you to change the page setup."
  101. (idmPrint+MH_BASE) "Print."
  102. (idmClose+MH_BASE) "Closes the window."
  103. (idmPopupHelp+MH_BASE) "Contains commands for displaying help."
  104. (idmAbout+MH_BASE) "Displays infomation about MEPAD"
  105. END
  106. // TOOLTIP strings
  107. STRINGTABLE DISCARDABLE
  108. BEGIN
  109. (idmNew+TT_BASE) "New"
  110. (idmOpen+TT_BASE) "Open"
  111. (idmSave+TT_BASE) "Save"
  112. (idmBack+TT_BASE) "Back"
  113. (idmForward+TT_BASE) "Forward"
  114. (idmPrint+TT_BASE) "Print"
  115. (idmAbout+TT_BASE) "Show info"
  116. END
  117. idacMeHost ACCELERATORS MOVEABLE PURE
  118. BEGIN
  119. VK_F2, idmViewSource, VIRTKEY, CONTROL, NOINVERT
  120. VK_F3, idmViewMsgSource, VIRTKEY, CONTROL, NOINVERT
  121. END
  122. iddFmt DIALOG DISCARDABLE 0, 0, 259, 110
  123. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  124. CAPTION "Preview Format String"
  125. FONT 8, "MS Shell Dlg"
  126. BEGIN
  127. DEFPUSHBUTTON "OK",IDOK,202,7,50,14
  128. PUSHBUTTON "Cancel",IDCANCEL,202,24,50,14
  129. LTEXT "Control String for preview pane:\n&&s - subject\n&&c - carbon copies\n&&f - from\n&&t - to\n&&b - linebreak",
  130. -1,15,15,169,56
  131. EDITTEXT idcEdit,20,81,225,16,ES_AUTOHSCROLL
  132. END
  133. iddLang DIALOGEX 0, 0, 202, 57
  134. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  135. CAPTION "Pick Charset to Apply..."
  136. FONT 8, "MS Shell Dlg"
  137. BEGIN
  138. DEFPUSHBUTTON "OK",IDOK,145,7,50,14
  139. PUSHBUTTON "Cancel",IDCANCEL,145,24,50,14
  140. COMBOBOX idcLang,14,15,125,120,CBS_DROPDOWNLIST | CBS_SORT |
  141. WS_VSCROLL | WS_TABSTOP,WS_EX_NOPARENTNOTIFY |
  142. WS_EX_CLIENTEDGE
  143. END
  144. iddOptions DIALOG DISCARDABLE 0, 0, 357, 258
  145. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  146. CAPTION "MimeEdit Host Options"
  147. FONT 8, "MS Shell Dlg"
  148. BEGIN
  149. DEFPUSHBUTTON "OK",IDOK,302,8,50,14
  150. PUSHBUTTON "Cancel",IDCANCEL,302,26,50,14
  151. CONTROL "Autoinline Images",idcAuto,"Button",BS_AUTOCHECKBOX |
  152. WS_TABSTOP,19,21,136,12
  153. CONTROL "as a slideshow",idcSlide,"Button",BS_AUTOCHECKBOX |
  154. WS_TABSTOP,32,33,136,12
  155. CONTROL "Quote Text with",idcQuote,"Button",BS_AUTOCHECKBOX |
  156. WS_TABSTOP,19,49,63,12
  157. EDITTEXT ideQuote,86,48,23,12,ES_AUTOHSCROLL
  158. CONTROL "HTML OK",25,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,63,
  159. 79,15
  160. CONTROL "Include Message",idcInclude,"Button",BS_AUTOCHECKBOX |
  161. WS_TABSTOP,19,79,98,12
  162. CONTROL "Send Images",idcSendImages,"Button",BS_AUTOCHECKBOX |
  163. WS_TABSTOP,19,94,98,12
  164. GROUPBOX " Options ",-1,8,7,286,232
  165. CONTROL "Compose Font",idcComposeFont,"Button",BS_AUTOCHECKBOX |
  166. WS_TABSTOP,19,111,60,10
  167. EDITTEXT ideComposeFont,82,109,84,12,ES_AUTOHSCROLL
  168. LTEXT "[Bold],[Italic],[Underline],\n[size],[FGRed.FGGreen.FGBlue],\n[BGRed.BGGreen.BGBlue],[FontFace]",
  169. -1,31,126,126,32
  170. GROUPBOX " Reply Header ",-1,199,29,86,82
  171. CONTROL "None",idrbNone,"Button",BS_AUTORADIOBUTTON,207,42,61,12
  172. CONTROL "News",idrbMail,"Button",BS_AUTORADIOBUTTON,207,53,61,12
  173. CONTROL "Mail",idrbNews,"Button",BS_AUTORADIOBUTTON,207,64,61,12
  174. CONTROL "Printing",idrbPrint,"Button",BS_AUTORADIOBUTTON,207,75,
  175. 61,12
  176. CONTROL "BlockQuote",idcBlockQuote,"Button",BS_AUTOCHECKBOX |
  177. WS_TABSTOP,208,91,70,12
  178. CONTROL "AutoSig",idcSig,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
  179. 20,173,49,11
  180. EDITTEXT ideSig,70,171,101,47,ES_MULTILINE | ES_AUTOHSCROLL |
  181. ES_WANTRETURN
  182. CONTROL "HTML",idcSigHtml,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
  183. 20,187,38,9
  184. GROUPBOX " Signature ",-1,14,158,165,65
  185. END
  186. iddSaveAsMHTML DIALOG DISCARDABLE 0, 0, 205, 79
  187. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  188. CAPTION "SaveASMHTMLTest"
  189. FONT 8, "MS Shell Dlg"
  190. BEGIN
  191. DEFPUSHBUTTON "OK",IDOK,148,7,50,14
  192. PUSHBUTTON "Cancel",IDCANCEL,148,24,50,14
  193. CONTROL "PlainText",idcPlain,"Button",BS_AUTOCHECKBOX |
  194. WS_TABSTOP,17,19,89,11
  195. CONTROL "HTML",25,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,17,30,83,
  196. 11
  197. CONTROL "Images",idcImages,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
  198. 17,42,75,11
  199. GROUPBOX " Encode this data ",-1,7,7,110,65
  200. CONTROL "Send file:// only",idcFiles,"Button",BS_AUTOCHECKBOX |
  201. WS_TABSTOP,17,54,75,11
  202. END
  203. iddGeneric DIALOG DISCARDABLE 0, 0, 297, 68
  204. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  205. CAPTION "Dialog"
  206. FONT 8, "MS Shell Dlg"
  207. BEGIN
  208. DEFPUSHBUTTON "OK",IDOK,240,7,50,14
  209. PUSHBUTTON "Cancel",IDCANCEL,240,24,50,14
  210. EDITTEXT idcEdit,23,25,181,15,ES_AUTOHSCROLL
  211. GROUPBOX "Static",-1,14,7,213,46
  212. END