#include "resource.h" #include #include // for IDC_MESSAGEBOXCHECKEX #define UXCTRL_VERSION 0x100 #include "commctrl.h" // for WC_LINK ///////////////////////////////////////////////////////////////////////////// // // Version // #include "winver.h" #include "resource.rcv" ///////////////////////////////////////////////////////////////////////////// // // ICON // IDI_FULLSCREEN ICON DISCARDABLE "res\\fullscn.ico" IDI_BITMAPFILE ICON DISCARDABLE "res\\rc_bitmap.ico" IDI_GIFFILE ICON DISCARDABLE "res\\rc_gif.ico" IDI_JPEGFILE ICON DISCARDABLE "res\\rc_jpeg.ico" IDI_TIFFILE ICON DISCARDABLE "res\\rc_tif.ico" IDI_MAIL ICON DISCARDABLE "res\\mail.ico" ///////////////////////////////////////////////////////////////////////////// // // HTML // IDR_VIEWERHTML HTML DISCARDABLE "res\\viewer.htm" IDR_VIEWERHTML_NET HTML DISCARDABLE "res\\viewern.htm" ///////////////////////////////////////////////////////////////////////////// // // REGISTRY // IDR_PREVIEW REGISTRY DISCARDABLE "res\\Preview.rgs" ///////////////////////////////////////////////////////////////////////////// // // Cursor // IDC_OPENHAND CURSOR DISCARDABLE "res\\harrow.cur" IDC_CLOSEDHAND CURSOR DISCARDABLE "res\\hmove.cur" IDC_ZOOMOUT CURSOR DISCARDABLE "res\\zoomout.cur" IDC_ZOOMIN CURSOR DISCARDABLE "res\\zoomin.cur" ///////////////////////////////////////////////////////////////////////////// // // Animations // IDA_ROTATEAVI AVI DISCARDABLE "res\\rotate.avi" IDA_FILECOPY AVI DISCARDABLE "res\\filecopy.avi" ///////////////////////////////////////////////////////////////////////////// // // Accelerator // // Why two accelerator tables? For multipage images the page up and page down // keys need to switch pages within the same image for single page images they // need to goto the next image IDA_PREVWND_SINGLEPAGE ACCELERATORS DISCARDABLE BEGIN "+", ID_ZOOMINCMD, NOINVERT "-", ID_ZOOMOUTCMD, NOINVERT "A", ID_ACTUALSIZECMD, VIRTKEY, NOINVERT, CONTROL "B", ID_BESTFITCMD, VIRTKEY, NOINVERT, CONTROL VK_F11, ID_SLIDESHOWCMD, VIRTKEY, NOINVERT "E", ID_OPENCMD, VIRTKEY, NOINVERT, CONTROL VK_F2, ID_EDITCMD, VIRTKEY, NOINVERT VK_F1, ID_HELPCMD, VIRTKEY, NOINVERT VK_BACK, ID_PREVIMGCMD, VIRTKEY, NOINVERT // VK_PRIOR and VK_NEXT map to PREVIMGCMD and NEXTIMGCMD VK_PRIOR, ID_PREVIMGCMD, VIRTKEY, NOINVERT VK_NEXT, ID_NEXTIMGCMD, VIRTKEY, NOINVERT VK_RETURN, ID_NEXTIMGCMD, VIRTKEY, NOINVERT "P", ID_PRINTCMD, VIRTKEY, NOINVERT, CONTROL "S", ID_SAVEASCMD, VIRTKEY, NOINVERT, CONTROL VK_DELETE, ID_DELETECMD, VIRTKEY, NOINVERT "I", ID_PROPERTIESCMD, VIRTKEY, NOINVERT, CONTROL "K", ID_ROTATE90CMD, VIRTKEY, NOINVERT, CONTROL "L", ID_ROTATE270CMD, VIRTKEY, NOINVERT, CONTROL VK_UP, ID_MOVEUPCMD, VIRTKEY, NOINVERT, CONTROL VK_DOWN, ID_MOVEDOWNCMD, VIRTKEY, NOINVERT, CONTROL VK_LEFT, ID_MOVELEFTCMD, VIRTKEY, NOINVERT, CONTROL VK_RIGHT, ID_MOVERIGHTCMD, VIRTKEY, NOINVERT, CONTROL VK_UP, ID_NUDGEUPCMD, VIRTKEY, NOINVERT VK_DOWN, ID_NUDGEDOWNCMD, VIRTKEY, NOINVERT VK_LEFT, ID_NUDGELEFTCMD, VIRTKEY, NOINVERT VK_RIGHT, ID_NUDGERIGHTCMD, VIRTKEY, NOINVERT END IDA_PREVWND_MULTIPAGE ACCELERATORS DISCARDABLE BEGIN "+", ID_ZOOMINCMD, NOINVERT VK_ADD, ID_ZOOMINCMD, VIRTKEY, NOINVERT "-", ID_ZOOMOUTCMD, NOINVERT VK_SUBTRACT, ID_ZOOMOUTCMD, VIRTKEY, NOINVERT "A", ID_ACTUALSIZECMD, VIRTKEY, NOINVERT, CONTROL "B", ID_BESTFITCMD, VIRTKEY, NOINVERT, CONTROL VK_F11, ID_SLIDESHOWCMD, VIRTKEY, NOINVERT "E", ID_OPENCMD, VIRTKEY, NOINVERT, CONTROL VK_F2, ID_EDITCMD, VIRTKEY, NOINVERT VK_F1, ID_HELPCMD, VIRTKEY, NOINVERT VK_BACK, ID_PREVIMGCMD, VIRTKEY, NOINVERT // VK_PRIOR and VK_NEXT map to PREVPAGECMD and NEXTPAGECMD VK_PRIOR, ID_PREVPAGECMD, VIRTKEY, NOINVERT VK_NEXT, ID_NEXTPAGECMD, VIRTKEY, NOINVERT VK_RETURN, ID_NEXTIMGCMD, VIRTKEY, NOINVERT "P", ID_PRINTCMD, VIRTKEY, NOINVERT, CONTROL "S", ID_SAVEASCMD, VIRTKEY, NOINVERT, CONTROL VK_DELETE, ID_DELETECMD, VIRTKEY, NOINVERT "I", ID_PROPERTIESCMD, VIRTKEY, NOINVERT, CONTROL "K", ID_ROTATE90CMD, VIRTKEY, NOINVERT, CONTROL "L", ID_ROTATE270CMD, VIRTKEY, NOINVERT, CONTROL VK_UP, ID_MOVEUPCMD, VIRTKEY, NOINVERT, CONTROL VK_DOWN, ID_MOVEDOWNCMD, VIRTKEY, NOINVERT, CONTROL VK_LEFT, ID_MOVELEFTCMD, VIRTKEY, NOINVERT, CONTROL VK_RIGHT, ID_MOVERIGHTCMD, VIRTKEY, NOINVERT, CONTROL VK_UP, ID_NUDGEUPCMD, VIRTKEY, NOINVERT VK_DOWN, ID_NUDGEDOWNCMD, VIRTKEY, NOINVERT VK_LEFT, ID_NUDGELEFTCMD, VIRTKEY, NOINVERT VK_RIGHT, ID_NUDGERIGHTCMD, VIRTKEY, NOINVERT END ///////////////////////////////////////////////////////////////////////////// // // Bitmap // IDB_TOOLBAR BITMAP DISCARDABLE "res\\toolbr8.bmp" IDB_TOOLBAR_HOT BITMAP DISCARDABLE "res\\toolbr8h.bmp" IDB_TOOLBARHIGH BITMAP DISCARDABLE "res\\toolbar.bmp" IDB_TOOLBARHIGH_HOT BITMAP DISCARDABLE "res\\toolbarh.bmp" IDB_SLIDESHOWTOOLBAR BITMAP DISCARDABLE "res\\sstbar8.bmp" IDB_SLIDESHOWTOOLBAR_HOT BITMAP DISCARDABLE "res\\sstbar8h.bmp" IDB_SLIDESHOWTOOLBARHIGH BITMAP DISCARDABLE "res\\sstbar.bmp" IDB_SLIDESHOWTOOLBARHIGH_HOT BITMAP DISCARDABLE "res\\sstbarh.bmp" ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_ANNOPROPS DIALOG DISCARDABLE 0, 0, 194, 70 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Annotation Properties" FONT 8, "MS Shell Dlg" BEGIN LTEXT "Line &Width:",IDC_WIDTHTEXT,7,9,37,8 EDITTEXT IDC_WIDTH,47,7,27,14,ES_AUTOHSCROLL | ES_NUMBER CONTROL "Spin1",IDC_SPIN,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,75,7,11,14 CONTROL "&Transparent",IDC_TRANSPARENT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,31,54,10 PUSHBUTTON "&Color...",IDC_COLOR,7,49,50,14 PUSHBUTTON "&Font...",IDC_FONT,69,49,50,14 DEFPUSHBUTTON "OK",IDOK,137,7,50,14 PUSHBUTTON "Cancel",IDCANCEL,137,24,50,14 END ///////////////////////////////////////////////////////////////////////////// // // String Table // STRINGTABLE DISCARDABLE BEGIN IDS_PROJNAME "Windows Picture and Fax Viewer" IDS_NOPREVIEW "No file selected." IDS_LOADFAILED "No preview available." IDS_MULTISELECT "Multiple files selected." IDS_LOADING "Generating preview..." IDS_SETUPFAILED "Could not initialize download." IDS_DRAWFAILED "Drawing failed." IDS_DRAWING "Drawing, please wait..." IDS_ROTATE90 "Rotate clockwise" IDS_ROTATE270 "Rotate counterclockwise" IDS_ROTATETITLE "Rotating..." IDS_ROTATEDLGTITLE "Waiting for user..." IDS_SAVEWARNING_MSGBOX "Annotations have changed. Would you like to Save?" IDS_NAMETOOLONG_MSGBOX "The filename is too long. Copy To aborted." IDS_WIDTHBAD_MSGBOX "The Line Width must be between 1 and 50." 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." IDS_GDITHUMBEXTRACT_DESC "GDI+ file thumbnail extractor" IDS_DOCTHUMBEXTRACT_DESC "Summary Info Thumbnail handler (DOCFILES)" IDS_HTMLTHUMBEXTRACT_DESC "HTML Thumbnail Extractor" IDS_NEW_FILENAME "New Image" IDS_SAVEAS_TITLE "Copy To" IDS_DIMENSIONS_FMT "%1!d! x %2!d!" END STRINGTABLE DISCARDABLE BEGIN IDS_UNKNOWNIMAGE "%1 Image" IDS_EMFIMAGE "EMF Image" IDS_GIFIMAGE "GIF Image" IDS_JPEGIMAGE "JPEG Image" IDS_BITMAPIMAGE "Bitmap Image" IDS_PNGIMAGE "PNG Image" IDS_TIFIMAGE "TIF Image" IDS_WMFIMAGE "WMF Image" END // Toolbar tooltip strings STRINGTABLE DISCARDABLE BEGIN ID_ZOOMINCMD "Zoom In (+)" ID_ZOOMOUTCMD "Zoom Out (-)" ID_BESTFITCMD "Best Fit (Ctrl+B)" ID_ACTUALSIZECMD "Actual Size (Ctrl+A)" ID_PREVPAGECMD "Previous Page (Page Up)" ID_NEXTPAGECMD "Next Page (Page Down)" ID_PREVIMGCMD "Previous Image (Left Arrow)" ID_NEXTIMGCMD "Next Image (Right Arrow)" ID_SLIDESHOWCMD "Start Slide Show (F11)" ID_PRINTCMD "Print (Ctrl+P)" ID_PROPERTIESCMD "Edit Info (Ctrl+I)" ID_SAVEASCMD "Copy To (Ctrl+S)" ID_OPENCMD "Closes this program and opens the image for editing (Ctrl+E)" ID_DELETECMD "Delete (Delete)" ID_HELPCMD "Help (F1)" ID_PAGELIST "Current Page" ID_SELECTCMD "Select Annotation" ID_FREEHANDCMD "New Freehand Annotation" ID_HIGHLIGHTCMD "New Highlight Annotation" ID_LINECMD "New Straight Line Annotation" ID_FRAMECMD "New Frame Annotation" ID_RECTCMD "New Solid Rectangle Annotation" ID_TEXTCMD "New Text Annotation" ID_NOTECMD "New Attached Note Annotation" ID_ROTATE90CMD "Rotate Clockwise (Ctrl+K)" ID_ROTATE270CMD "Rotate Counterclockwise (Ctrl+L)" ID_PLAYCMD "Start Slide Show" ID_PAUSECMD "Pause Slide Show" ID_PREVCMD "Previous Picture" ID_NEXTCMD "Next Picture" ID_CLOSECMD "Close the window" IDS_PRINTCMD "Print" IDS_ROTATE90CMD "Rotate Clockwise" IDS_ROTATE270CMD "Rotate Counterclockwise" IDS_DELETECMD "&Delete Annotation" IDS_PROPERTIESCMD "&Edit Annotation Info" END // context menu command strings STRINGTABLE DISCARDABLE BEGIN IDS_PREVIEW_CTX "Pre&view" IDS_ZOOMIN_CTX "Zoom &In" IDS_ZOOMOUT_CTX "Zoom &Out" IDS_ACTUALSIZE_CTX "&Actual Size" IDS_BESTFIT_CTX "&Best Fit" IDS_NEXTPAGE_CTX "Ne&xt Page" IDS_PREVPAGE_CTX "Previous Pa&ge" IDS_ROTATE90_CTX "Rotate Cloc&kwise" IDS_ROTATE270_CTX "Rotate Cou&nter Clockwise" IDS_PRINT_CTX "&Print" IDS_WALLPAPER_CTX "Set as Desktop &Background" END STRINGTABLE DISCARDABLE BEGIN IDS_THUMBNAIL_MSGBOX L"Create thumbnails of selected images and \nsave to destination folder along with the web page?" IDS_THUMBNAIL_PROGRESSTEXT L"Generating thumbnail files..." IDS_THUMBNAIL_MSGBOXTITLE L"Confirm thumbnail creation" IDS_COPYIMAGES_MSGBOX L"Copy selected images to destination folder\nalong with the web page?" IDS_COPYIMAGES_PROGRESSTEXT L"Copying files..." IDS_COPYIMAGES_MSGBOXTITLE L"Confirm file copy" IDS_RECOMPRESS_CAPTION L"Sending %s" IDS_ROTATE_CAPTION "Rotation" 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?" IDS_ROTATE_CANTSAVE "Because this image is read-only, the rotated version cannot be saved using the same file name. To save it, click Copy To and give it a new file name." 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." IDS_ROTATE_MESSAGE "%1 is an animated image. Animated images cannot be rotated." IDS_RESET_MSGBOX "Any rotation warnings that you may have suppressed have been reset, and may appear again when you rotate a picture." END STRINGTABLE DISCARDABLE BEGIN IDS_THUMBNAIL_SUFFIX L"__thumb" IDS_CHOOSE_DIR L"Choose a directory" END STRINGTABLE DISCARDABLE BEGIN 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?" IDS_SUMMARY "Summary" // This string must match the dialog caption from docprop2.dll END REGINST REGINST MOVEABLE PURE "shimgvw_selfreg.inf" STRINGTABLE DISCARDABLE BEGIN IDH_HELP_OPEN "Opens the selected items in Windows Picture and Fax Viewer." IDH_HELP_PRINTTO "Sends the selected items to the printer." IDH_HELP_ROT90 "Turns the selected items 90 degrees to the right." IDH_HELP_ROT270 "Turns the selected items 90 degrees to the left. " IDH_HELP_SETWALL "Uses the selected item as the background for your computer screen." IDH_HELP_ZOOMIN "Increase the magnification level." IDH_HELP_ZOOMOUT "Decrease the magnification level." IDH_HELP_ACTUALSIZE "Show the image at full size." IDH_HELP_BESTFIT "Fit the image to the window." IDH_HELP_NEXTPAGE "Open the next page." IDH_HELP_PREVPAGE "Open the previous page." END ///////////////////////////////////////////////////////////////////////////// // // Type Library // 1 TYPELIB "shimgvw.tlb"