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.

347 lines
15 KiB

  1. #include "resource.h"
  2. #include <windows.h>
  3. #include <shlwapip.h> // for IDC_MESSAGEBOXCHECKEX
  4. #define UXCTRL_VERSION 0x100
  5. #include "commctrl.h" // for WC_LINK
  6. /////////////////////////////////////////////////////////////////////////////
  7. //
  8. // Version
  9. //
  10. #include "winver.h"
  11. #include "resource.rcv"
  12. /////////////////////////////////////////////////////////////////////////////
  13. //
  14. // ICON
  15. //
  16. IDI_FULLSCREEN ICON DISCARDABLE "res\\fullscn.ico"
  17. IDI_BITMAPFILE ICON DISCARDABLE "res\\rc_bitmap.ico"
  18. IDI_GIFFILE ICON DISCARDABLE "res\\rc_gif.ico"
  19. IDI_JPEGFILE ICON DISCARDABLE "res\\rc_jpeg.ico"
  20. IDI_TIFFILE ICON DISCARDABLE "res\\rc_tif.ico"
  21. IDI_MAIL ICON DISCARDABLE "res\\mail.ico"
  22. /////////////////////////////////////////////////////////////////////////////
  23. //
  24. // HTML
  25. //
  26. IDR_VIEWERHTML HTML DISCARDABLE "res\\viewer.htm"
  27. IDR_VIEWERHTML_NET HTML DISCARDABLE "res\\viewern.htm"
  28. /////////////////////////////////////////////////////////////////////////////
  29. //
  30. // REGISTRY
  31. //
  32. IDR_PREVIEW REGISTRY DISCARDABLE "res\\Preview.rgs"
  33. /////////////////////////////////////////////////////////////////////////////
  34. //
  35. // Cursor
  36. //
  37. IDC_OPENHAND CURSOR DISCARDABLE "res\\harrow.cur"
  38. IDC_CLOSEDHAND CURSOR DISCARDABLE "res\\hmove.cur"
  39. IDC_ZOOMOUT CURSOR DISCARDABLE "res\\zoomout.cur"
  40. IDC_ZOOMIN CURSOR DISCARDABLE "res\\zoomin.cur"
  41. /////////////////////////////////////////////////////////////////////////////
  42. //
  43. // Animations
  44. //
  45. IDA_ROTATEAVI AVI DISCARDABLE "res\\rotate.avi"
  46. IDA_FILECOPY AVI DISCARDABLE "res\\filecopy.avi"
  47. /////////////////////////////////////////////////////////////////////////////
  48. //
  49. // Accelerator
  50. //
  51. // Why two accelerator tables? For multipage images the page up and page down
  52. // keys need to switch pages within the same image for single page images they
  53. // need to goto the next image
  54. IDA_PREVWND_SINGLEPAGE ACCELERATORS DISCARDABLE
  55. BEGIN
  56. "+", ID_ZOOMINCMD, NOINVERT
  57. "-", ID_ZOOMOUTCMD, NOINVERT
  58. "A", ID_ACTUALSIZECMD, VIRTKEY, NOINVERT, CONTROL
  59. "B", ID_BESTFITCMD, VIRTKEY, NOINVERT, CONTROL
  60. VK_F11, ID_SLIDESHOWCMD, VIRTKEY, NOINVERT
  61. "E", ID_OPENCMD, VIRTKEY, NOINVERT, CONTROL
  62. VK_F2, ID_EDITCMD, VIRTKEY, NOINVERT
  63. VK_F1, ID_HELPCMD, VIRTKEY, NOINVERT
  64. VK_BACK, ID_PREVIMGCMD, VIRTKEY, NOINVERT
  65. // VK_PRIOR and VK_NEXT map to PREVIMGCMD and NEXTIMGCMD
  66. VK_PRIOR, ID_PREVIMGCMD, VIRTKEY, NOINVERT
  67. VK_NEXT, ID_NEXTIMGCMD, VIRTKEY, NOINVERT
  68. VK_RETURN, ID_NEXTIMGCMD, VIRTKEY, NOINVERT
  69. "P", ID_PRINTCMD, VIRTKEY, NOINVERT, CONTROL
  70. "S", ID_SAVEASCMD, VIRTKEY, NOINVERT, CONTROL
  71. VK_DELETE, ID_DELETECMD, VIRTKEY, NOINVERT
  72. "I", ID_PROPERTIESCMD, VIRTKEY, NOINVERT, CONTROL
  73. "K", ID_ROTATE90CMD, VIRTKEY, NOINVERT, CONTROL
  74. "L", ID_ROTATE270CMD, VIRTKEY, NOINVERT, CONTROL
  75. VK_UP, ID_MOVEUPCMD, VIRTKEY, NOINVERT, CONTROL
  76. VK_DOWN, ID_MOVEDOWNCMD, VIRTKEY, NOINVERT, CONTROL
  77. VK_LEFT, ID_MOVELEFTCMD, VIRTKEY, NOINVERT, CONTROL
  78. VK_RIGHT, ID_MOVERIGHTCMD, VIRTKEY, NOINVERT, CONTROL
  79. VK_UP, ID_NUDGEUPCMD, VIRTKEY, NOINVERT
  80. VK_DOWN, ID_NUDGEDOWNCMD, VIRTKEY, NOINVERT
  81. VK_LEFT, ID_NUDGELEFTCMD, VIRTKEY, NOINVERT
  82. VK_RIGHT, ID_NUDGERIGHTCMD, VIRTKEY, NOINVERT
  83. END
  84. IDA_PREVWND_MULTIPAGE ACCELERATORS DISCARDABLE
  85. BEGIN
  86. "+", ID_ZOOMINCMD, NOINVERT
  87. VK_ADD, ID_ZOOMINCMD, VIRTKEY, NOINVERT
  88. "-", ID_ZOOMOUTCMD, NOINVERT
  89. VK_SUBTRACT, ID_ZOOMOUTCMD, VIRTKEY, NOINVERT
  90. "A", ID_ACTUALSIZECMD, VIRTKEY, NOINVERT, CONTROL
  91. "B", ID_BESTFITCMD, VIRTKEY, NOINVERT, CONTROL
  92. VK_F11, ID_SLIDESHOWCMD, VIRTKEY, NOINVERT
  93. "E", ID_OPENCMD, VIRTKEY, NOINVERT, CONTROL
  94. VK_F2, ID_EDITCMD, VIRTKEY, NOINVERT
  95. VK_F1, ID_HELPCMD, VIRTKEY, NOINVERT
  96. VK_BACK, ID_PREVIMGCMD, VIRTKEY, NOINVERT
  97. // VK_PRIOR and VK_NEXT map to PREVPAGECMD and NEXTPAGECMD
  98. VK_PRIOR, ID_PREVPAGECMD, VIRTKEY, NOINVERT
  99. VK_NEXT, ID_NEXTPAGECMD, VIRTKEY, NOINVERT
  100. VK_RETURN, ID_NEXTIMGCMD, VIRTKEY, NOINVERT
  101. "P", ID_PRINTCMD, VIRTKEY, NOINVERT, CONTROL
  102. "S", ID_SAVEASCMD, VIRTKEY, NOINVERT, CONTROL
  103. VK_DELETE, ID_DELETECMD, VIRTKEY, NOINVERT
  104. "I", ID_PROPERTIESCMD, VIRTKEY, NOINVERT, CONTROL
  105. "K", ID_ROTATE90CMD, VIRTKEY, NOINVERT, CONTROL
  106. "L", ID_ROTATE270CMD, VIRTKEY, NOINVERT, CONTROL
  107. VK_UP, ID_MOVEUPCMD, VIRTKEY, NOINVERT, CONTROL
  108. VK_DOWN, ID_MOVEDOWNCMD, VIRTKEY, NOINVERT, CONTROL
  109. VK_LEFT, ID_MOVELEFTCMD, VIRTKEY, NOINVERT, CONTROL
  110. VK_RIGHT, ID_MOVERIGHTCMD, VIRTKEY, NOINVERT, CONTROL
  111. VK_UP, ID_NUDGEUPCMD, VIRTKEY, NOINVERT
  112. VK_DOWN, ID_NUDGEDOWNCMD, VIRTKEY, NOINVERT
  113. VK_LEFT, ID_NUDGELEFTCMD, VIRTKEY, NOINVERT
  114. VK_RIGHT, ID_NUDGERIGHTCMD, VIRTKEY, NOINVERT
  115. END
  116. /////////////////////////////////////////////////////////////////////////////
  117. //
  118. // Bitmap
  119. //
  120. IDB_TOOLBAR BITMAP DISCARDABLE "res\\toolbr8.bmp"
  121. IDB_TOOLBAR_HOT BITMAP DISCARDABLE "res\\toolbr8h.bmp"
  122. IDB_TOOLBARHIGH BITMAP DISCARDABLE "res\\toolbar.bmp"
  123. IDB_TOOLBARHIGH_HOT BITMAP DISCARDABLE "res\\toolbarh.bmp"
  124. IDB_SLIDESHOWTOOLBAR BITMAP DISCARDABLE "res\\sstbar8.bmp"
  125. IDB_SLIDESHOWTOOLBAR_HOT BITMAP DISCARDABLE "res\\sstbar8h.bmp"
  126. IDB_SLIDESHOWTOOLBARHIGH BITMAP DISCARDABLE "res\\sstbar.bmp"
  127. IDB_SLIDESHOWTOOLBARHIGH_HOT BITMAP DISCARDABLE "res\\sstbarh.bmp"
  128. /////////////////////////////////////////////////////////////////////////////
  129. //
  130. // Dialog
  131. //
  132. IDD_ANNOPROPS DIALOG DISCARDABLE 0, 0, 194, 70
  133. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  134. CAPTION "Annotation Properties"
  135. FONT 8, "MS Shell Dlg"
  136. BEGIN
  137. LTEXT "Line &Width:",IDC_WIDTHTEXT,7,9,37,8
  138. EDITTEXT IDC_WIDTH,47,7,27,14,ES_AUTOHSCROLL | ES_NUMBER
  139. CONTROL "Spin1",IDC_SPIN,"msctls_updown32",UDS_WRAP |
  140. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  141. UDS_ARROWKEYS | UDS_NOTHOUSANDS,75,7,11,14
  142. CONTROL "&Transparent",IDC_TRANSPARENT,"Button",BS_AUTOCHECKBOX |
  143. WS_TABSTOP,7,31,54,10
  144. PUSHBUTTON "&Color...",IDC_COLOR,7,49,50,14
  145. PUSHBUTTON "&Font...",IDC_FONT,69,49,50,14
  146. DEFPUSHBUTTON "OK",IDOK,137,7,50,14
  147. PUSHBUTTON "Cancel",IDCANCEL,137,24,50,14
  148. END
  149. /////////////////////////////////////////////////////////////////////////////
  150. //
  151. // String Table
  152. //
  153. STRINGTABLE DISCARDABLE
  154. BEGIN
  155. IDS_PROJNAME "Windows Picture and Fax Viewer"
  156. IDS_NOPREVIEW "No file selected."
  157. IDS_LOADFAILED "No preview available."
  158. IDS_MULTISELECT "Multiple files selected."
  159. IDS_LOADING "Generating preview..."
  160. IDS_SETUPFAILED "Could not initialize download."
  161. IDS_DRAWFAILED "Drawing failed."
  162. IDS_DRAWING "Drawing, please wait..."
  163. IDS_ROTATE90 "Rotate clockwise"
  164. IDS_ROTATE270 "Rotate counterclockwise"
  165. IDS_ROTATETITLE "Rotating..."
  166. IDS_ROTATEDLGTITLE "Waiting for user..."
  167. IDS_SAVEWARNING_MSGBOX "Annotations have changed. Would you like to Save?"
  168. IDS_NAMETOOLONG_MSGBOX "The filename is too long. Copy To aborted."
  169. IDS_WIDTHBAD_MSGBOX "The Line Width must be between 1 and 50."
  170. IDS_SAVEFAILED_MSGBOX "Failed to save to the specified location. Make sure the file is not write-protected and there is enough space on the drive to save the image. Copy To Aborted."
  171. IDS_GDITHUMBEXTRACT_DESC "GDI+ file thumbnail extractor"
  172. IDS_DOCTHUMBEXTRACT_DESC "Summary Info Thumbnail handler (DOCFILES)"
  173. IDS_HTMLTHUMBEXTRACT_DESC "HTML Thumbnail Extractor"
  174. IDS_NEW_FILENAME "New Image"
  175. IDS_SAVEAS_TITLE "Copy To"
  176. IDS_DIMENSIONS_FMT "%1!d! x %2!d!"
  177. END
  178. STRINGTABLE DISCARDABLE
  179. BEGIN
  180. IDS_UNKNOWNIMAGE "%1 Image"
  181. IDS_EMFIMAGE "EMF Image"
  182. IDS_GIFIMAGE "GIF Image"
  183. IDS_JPEGIMAGE "JPEG Image"
  184. IDS_BITMAPIMAGE "Bitmap Image"
  185. IDS_PNGIMAGE "PNG Image"
  186. IDS_TIFIMAGE "TIF Image"
  187. IDS_WMFIMAGE "WMF Image"
  188. END
  189. // Toolbar tooltip strings
  190. STRINGTABLE DISCARDABLE
  191. BEGIN
  192. ID_ZOOMINCMD "Zoom In (+)"
  193. ID_ZOOMOUTCMD "Zoom Out (-)"
  194. ID_BESTFITCMD "Best Fit (Ctrl+B)"
  195. ID_ACTUALSIZECMD "Actual Size (Ctrl+A)"
  196. ID_PREVPAGECMD "Previous Page (Page Up)"
  197. ID_NEXTPAGECMD "Next Page (Page Down)"
  198. ID_PREVIMGCMD "Previous Image (Left Arrow)"
  199. ID_NEXTIMGCMD "Next Image (Right Arrow)"
  200. ID_SLIDESHOWCMD "Start Slide Show (F11)"
  201. ID_PRINTCMD "Print (Ctrl+P)"
  202. ID_PROPERTIESCMD "Edit Info (Ctrl+I)"
  203. ID_SAVEASCMD "Copy To (Ctrl+S)"
  204. ID_OPENCMD "Closes this program and opens the image for editing (Ctrl+E)"
  205. ID_DELETECMD "Delete (Delete)"
  206. ID_HELPCMD "Help (F1)"
  207. ID_PAGELIST "Current Page"
  208. ID_SELECTCMD "Select Annotation"
  209. ID_FREEHANDCMD "New Freehand Annotation"
  210. ID_HIGHLIGHTCMD "New Highlight Annotation"
  211. ID_LINECMD "New Straight Line Annotation"
  212. ID_FRAMECMD "New Frame Annotation"
  213. ID_RECTCMD "New Solid Rectangle Annotation"
  214. ID_TEXTCMD "New Text Annotation"
  215. ID_NOTECMD "New Attached Note Annotation"
  216. ID_ROTATE90CMD "Rotate Clockwise (Ctrl+K)"
  217. ID_ROTATE270CMD "Rotate Counterclockwise (Ctrl+L)"
  218. ID_PLAYCMD "Start Slide Show"
  219. ID_PAUSECMD "Pause Slide Show"
  220. ID_PREVCMD "Previous Picture"
  221. ID_NEXTCMD "Next Picture"
  222. ID_CLOSECMD "Close the window"
  223. IDS_PRINTCMD "Print"
  224. IDS_ROTATE90CMD "Rotate Clockwise"
  225. IDS_ROTATE270CMD "Rotate Counterclockwise"
  226. IDS_DELETECMD "&Delete Annotation"
  227. IDS_PROPERTIESCMD "&Edit Annotation Info"
  228. END
  229. // context menu command strings
  230. STRINGTABLE DISCARDABLE
  231. BEGIN
  232. IDS_PREVIEW_CTX "Pre&view"
  233. IDS_ZOOMIN_CTX "Zoom &In"
  234. IDS_ZOOMOUT_CTX "Zoom &Out"
  235. IDS_ACTUALSIZE_CTX "&Actual Size"
  236. IDS_BESTFIT_CTX "&Best Fit"
  237. IDS_NEXTPAGE_CTX "Ne&xt Page"
  238. IDS_PREVPAGE_CTX "Previous Pa&ge"
  239. IDS_ROTATE90_CTX "Rotate Cloc&kwise"
  240. IDS_ROTATE270_CTX "Rotate Cou&nter Clockwise"
  241. IDS_PRINT_CTX "&Print"
  242. IDS_WALLPAPER_CTX "Set as Desktop &Background"
  243. END
  244. STRINGTABLE DISCARDABLE
  245. BEGIN
  246. IDS_THUMBNAIL_MSGBOX L"Create thumbnails of selected images and \nsave to destination folder along with the web page?"
  247. IDS_THUMBNAIL_PROGRESSTEXT L"Generating thumbnail files..."
  248. IDS_THUMBNAIL_MSGBOXTITLE L"Confirm thumbnail creation"
  249. IDS_COPYIMAGES_MSGBOX L"Copy selected images to destination folder\nalong with the web page?"
  250. IDS_COPYIMAGES_PROGRESSTEXT L"Copying files..."
  251. IDS_COPYIMAGES_MSGBOXTITLE L"Confirm file copy"
  252. IDS_RECOMPRESS_CAPTION L"Sending %s"
  253. IDS_ROTATE_CAPTION "Rotation"
  254. IDS_ROTATE_LOSS "Because of the dimensions of this picture, rotating it might permanently reduce its quality. Rotating a picture automatically saves it using the original name. To save a backup copy first, see 'Copy an image' in Help.\n\nDo you want to proceed?"
  255. IDS_ROTATE_CANTSAVE "Because this image is read-only or contains extended color data, the rotated version cannot be saved using the same file name. To save it, click Copy To and give it a new file name."
  256. IDS_ROTATE_ERROR "You cannot rotate this image. The file might be in use or open in another program, or the file or folder might be read-only."
  257. IDS_ROTATE_MESSAGE "%1 is an animated image. Animated images cannot be rotated."
  258. IDS_RESET_MSGBOX "Any rotation warnings that you may have suppressed have been reset, and may appear again when you rotate a picture."
  259. IDS_ROTATE_MESSAGE_EXT "%1 contains extended color data that would be lost during rotation. Windows cannot rotate this image."
  260. END
  261. STRINGTABLE DISCARDABLE
  262. BEGIN
  263. IDS_THUMBNAIL_SUFFIX L"__thumb"
  264. IDS_CHOOSE_DIR L"Choose a directory"
  265. END
  266. STRINGTABLE DISCARDABLE
  267. BEGIN
  268. IDS_SAVE_WARN_TIFF "The new image will be imprinted with annotations that are present in the current TIFF image. Do you wish to continue?"
  269. IDS_SUMMARY "Summary" // This string must match the dialog caption from docprop2.dll
  270. END
  271. REGINST REGINST MOVEABLE PURE "shimgvw_selfreg.inf"
  272. STRINGTABLE DISCARDABLE
  273. BEGIN
  274. IDH_HELP_OPEN "Opens the selected items in Windows Picture and Fax Viewer."
  275. IDH_HELP_PRINTTO "Sends the selected items to the printer."
  276. IDH_HELP_ROT90 "Turns the selected items 90 degrees to the right."
  277. IDH_HELP_ROT270 "Turns the selected items 90 degrees to the left. "
  278. IDH_HELP_SETWALL "Uses the selected item as the background for your computer screen."
  279. IDH_HELP_ZOOMIN "Increase the magnification level."
  280. IDH_HELP_ZOOMOUT "Decrease the magnification level."
  281. IDH_HELP_ACTUALSIZE "Show the image at full size."
  282. IDH_HELP_BESTFIT "Fit the image to the window."
  283. IDH_HELP_NEXTPAGE "Open the next page."
  284. IDH_HELP_PREVPAGE "Open the previous page."
  285. END
  286. /////////////////////////////////////////////////////////////////////////////
  287. //
  288. // Type Library
  289. //
  290. 1 TYPELIB "shimgvw.tlb"