PrintPreview.rc
上传用户:cskgc_123
上传日期:2007-01-04
资源大小:56k
文件大小:17k
源码类别:

打印编程

开发平台:

Visual C++

  1. //Microsoft Developer Studio generated resource script.
  2. //
  3. #include "resource.h"
  4. #define APSTUDIO_READONLY_SYMBOLS
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. // Generated from the TEXTINCLUDE 2 resource.
  8. //
  9. #include "afxres.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. #undef APSTUDIO_READONLY_SYMBOLS
  12. /////////////////////////////////////////////////////////////////////////////
  13. // English (U.S.) resources
  14. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
  15. #ifdef _WIN32
  16. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  17. #pragma code_page(1252)
  18. #endif //_WIN32
  19. /////////////////////////////////////////////////////////////////////////////
  20. //
  21. // Icon
  22. //
  23. // Icon with lowest ID value placed first to ensure application icon
  24. // remains consistent on all systems.
  25. IDR_MAINFRAME           ICON    DISCARDABLE     "res\PrintPreview.ico"
  26. IDR_PRINTPTYPE          ICON    DISCARDABLE     "res\PrintPreviewDoc.ico"
  27. /////////////////////////////////////////////////////////////////////////////
  28. //
  29. // Bitmap
  30. //
  31. IDR_MAINFRAME           BITMAP  MOVEABLE PURE   "res\Toolbar.bmp"
  32. IDB_PREV_END            BITMAP  DISCARDABLE     "RES\PrevEnd.BMP"
  33. IDB_PREV_HOME           BITMAP  DISCARDABLE     "RES\PreviewHome.BMP"
  34. IDB_PREV_NEXT           BITMAP  DISCARDABLE     "RES\PreviewNext.BMP"
  35. IDB_PREV_ONE            BITMAP  DISCARDABLE     "RES\PreviewOne.BMP"
  36. IDB_PREV_PREVIOUS       BITMAP  DISCARDABLE     "RES\PrevPrevious.BMP"
  37. IDB_PREV_PRINT          BITMAP  DISCARDABLE     "RES\PrevPrint.BMP"
  38. IDB_PREV_TWO            BITMAP  DISCARDABLE     "RES\PreviewTwo.BMP"
  39. IDB_PREV_ZOOMIN         BITMAP  DISCARDABLE     "res\PrevZoomin.bmp"
  40. IDB_PREV_ZOOMOUT        BITMAP  DISCARDABLE     "RES\PrevZoomout.BMP"
  41. /////////////////////////////////////////////////////////////////////////////
  42. //
  43. // Toolbar
  44. //
  45. IDR_MAINFRAME TOOLBAR DISCARDABLE  16, 15
  46. BEGIN
  47.     BUTTON      ID_FILE_NEW
  48.     BUTTON      ID_FILE_OPEN
  49.     BUTTON      ID_FILE_SAVE
  50.     SEPARATOR
  51.     BUTTON      ID_EDIT_CUT
  52.     BUTTON      ID_EDIT_COPY
  53.     BUTTON      ID_EDIT_PASTE
  54.     SEPARATOR
  55.     BUTTON      ID_FILE_PRINT
  56.     SEPARATOR
  57.     BUTTON      ID_APP_ABOUT
  58. END
  59. /////////////////////////////////////////////////////////////////////////////
  60. //
  61. // Menu
  62. //
  63. IDR_MAINFRAME MENU PRELOAD DISCARDABLE 
  64. BEGIN
  65.     POPUP "&File"
  66.     BEGIN
  67.         MENUITEM "&NewtCtrl+N",                ID_FILE_NEW
  68.         MENUITEM "&Open...tCtrl+O",            ID_FILE_OPEN
  69.         MENUITEM SEPARATOR
  70.         MENUITEM "P&rint Setup...",             ID_FILE_PRINT_SETUP
  71.         MENUITEM SEPARATOR
  72.         MENUITEM "Recent File",                 ID_FILE_MRU_FILE1, GRAYED
  73.         MENUITEM SEPARATOR
  74.         MENUITEM "E&xit",                       ID_APP_EXIT
  75.     END
  76.     POPUP "&View"
  77.     BEGIN
  78.         MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
  79.         MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
  80.     END
  81.     POPUP "&Help"
  82.     BEGIN
  83.         MENUITEM "&About PrintPreview...",      ID_APP_ABOUT
  84.     END
  85. END
  86. IDR_PRINTPTYPE MENU PRELOAD DISCARDABLE 
  87. BEGIN
  88.     POPUP "&File"
  89.     BEGIN
  90.         MENUITEM "&NewtCtrl+N",                ID_FILE_NEW
  91.         MENUITEM "&Open...tCtrl+O",            ID_FILE_OPEN
  92.         MENUITEM "&Close",                      ID_FILE_CLOSE
  93.         MENUITEM "&SavetCtrl+S",               ID_FILE_SAVE
  94.         MENUITEM "Save &As...",                 ID_FILE_SAVE_AS
  95.         MENUITEM SEPARATOR
  96.         MENUITEM "&Print...tCtrl+P",           ID_FILE_PRINT
  97.         MENUITEM "MFC Standard Print Pre&view", ID_FILE_PRINT_PREVIEW
  98.         MENUITEM "&Improved Print Preview",     ID_FILE_IMPROVEDPRINTPREVIEW
  99.         MENUITEM "P&rint Setup...",             ID_FILE_PRINT_SETUP
  100.         MENUITEM SEPARATOR
  101.         MENUITEM "Recent File",                 ID_FILE_MRU_FILE1, GRAYED
  102.         MENUITEM SEPARATOR
  103.         MENUITEM "E&xit",                       ID_APP_EXIT
  104.     END
  105.     POPUP "&Edit"
  106.     BEGIN
  107.         MENUITEM "&UndotCtrl+Z",               ID_EDIT_UNDO
  108.         MENUITEM SEPARATOR
  109.         MENUITEM "Cu&ttCtrl+X",                ID_EDIT_CUT
  110.         MENUITEM "&CopytCtrl+C",               ID_EDIT_COPY
  111.         MENUITEM "&PastetCtrl+V",              ID_EDIT_PASTE
  112.     END
  113.     POPUP "&View"
  114.     BEGIN
  115.         MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
  116.         MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
  117.     END
  118.     POPUP "&Window"
  119.     BEGIN
  120.         MENUITEM "&New Window",                 ID_WINDOW_NEW
  121.         MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
  122.         MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
  123.         MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
  124.     END
  125.     POPUP "&Help"
  126.     BEGIN
  127.         MENUITEM "&About PrintPreview...",      ID_APP_ABOUT
  128.     END
  129. END
  130. /////////////////////////////////////////////////////////////////////////////
  131. //
  132. // Accelerator
  133. //
  134. IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE 
  135. BEGIN
  136.     "N",            ID_FILE_NEW,            VIRTKEY, CONTROL
  137.     "O",            ID_FILE_OPEN,           VIRTKEY, CONTROL
  138.     "S",            ID_FILE_SAVE,           VIRTKEY, CONTROL
  139.     "P",            ID_FILE_PRINT,          VIRTKEY, CONTROL
  140.     "Z",            ID_EDIT_UNDO,           VIRTKEY, CONTROL
  141.     "X",            ID_EDIT_CUT,            VIRTKEY, CONTROL
  142.     "C",            ID_EDIT_COPY,           VIRTKEY, CONTROL
  143.     "V",            ID_EDIT_PASTE,          VIRTKEY, CONTROL
  144.     VK_BACK,        ID_EDIT_UNDO,           VIRTKEY, ALT
  145.     VK_DELETE,      ID_EDIT_CUT,            VIRTKEY, SHIFT
  146.     VK_INSERT,      ID_EDIT_COPY,           VIRTKEY, CONTROL
  147.     VK_INSERT,      ID_EDIT_PASTE,          VIRTKEY, SHIFT
  148.     VK_F6,          ID_NEXT_PANE,           VIRTKEY 
  149.     VK_F6,          ID_PREV_PANE,           VIRTKEY, SHIFT
  150. END
  151. /////////////////////////////////////////////////////////////////////////////
  152. //
  153. // Dialog
  154. //
  155. IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 235, 71
  156. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  157. CAPTION "About PrintPreview"
  158. FONT 8, "MS Sans Serif"
  159. BEGIN
  160.     ICON            IDR_MAINFRAME,IDC_STATIC,11,17,21,20
  161.     LTEXT           "PrintPreview Version 1.0",IDC_STATIC,40,10,119,8,
  162.                     SS_NOPREFIX
  163.     LTEXT           "Copyright (C) 1999",IDC_STATIC,40,25,119,8
  164.     DEFPUSHBUTTON   "OK",IDOK,178,7,50,14,WS_GROUP
  165.     LTEXT           "Robin J LeatherbarrownErithacus Software Ltd.nrobin@erithacus.com",
  166.                     IDC_STATIC,40,41,94,24
  167. END
  168. IDD_PREVIEW DIALOG DISCARDABLE  0, 0, 219, 19
  169. STYLE WS_CHILD
  170. FONT 8, "MS Sans Serif"
  171. BEGIN
  172.     CONTROL         "",AFX_ID_PREVIEW_PRINT,"Button",BS_OWNERDRAW | 
  173.                     WS_TABSTOP,4,3,15,13
  174.     CONTROL         "",AFX_ID_PREVIEW_NEXT,"Button",BS_OWNERDRAW | 
  175.                     WS_TABSTOP,23,3,15,13
  176.     CONTROL         "",AFX_ID_PREVIEW_PREV,"Button",BS_OWNERDRAW | 
  177.                     WS_TABSTOP,42,3,15,13
  178.     CONTROL         "",AFX_ID_PREVIEW_NUMPAGE,"Button",BS_OWNERDRAW | 
  179.                     WS_TABSTOP,61,3,15,13
  180.     CONTROL         "",AFX_ID_PREVIEW_ZOOMIN,"Button",BS_OWNERDRAW | 
  181.                     WS_TABSTOP,80,3,15,13
  182.     CONTROL         "",AFX_ID_PREVIEW_ZOOMOUT,"Button",BS_OWNERDRAW | 
  183.                     WS_TABSTOP,99,3,15,13
  184.     PUSHBUTTON      "&Close",AFX_ID_PREVIEW_CLOSE,127,3,37,13
  185. END
  186. #ifndef _MAC
  187. /////////////////////////////////////////////////////////////////////////////
  188. //
  189. // Version
  190. //
  191. VS_VERSION_INFO VERSIONINFO
  192.  FILEVERSION 1,0,0,1
  193.  PRODUCTVERSION 1,0,0,1
  194.  FILEFLAGSMASK 0x3fL
  195. #ifdef _DEBUG
  196.  FILEFLAGS 0x1L
  197. #else
  198.  FILEFLAGS 0x0L
  199. #endif
  200.  FILEOS 0x4L
  201.  FILETYPE 0x1L
  202.  FILESUBTYPE 0x0L
  203. BEGIN
  204.     BLOCK "StringFileInfo"
  205.     BEGIN
  206.         BLOCK "040904B0"
  207.         BEGIN
  208.             VALUE "CompanyName", ""
  209.             VALUE "FileDescription", "PrintPreview MFC Application"
  210.             VALUE "FileVersion", "1, 0, 0, 1"
  211.             VALUE "InternalName", "PrintPreview"
  212.             VALUE "LegalCopyright", "Copyright (C) 1999"
  213.             VALUE "LegalTrademarks", ""
  214.             VALUE "OriginalFilename", "PrintPreview.EXE"
  215.             VALUE "ProductName", "PrintPreview Application"
  216.             VALUE "ProductVersion", "1, 0, 0, 1"
  217.         END
  218.     END
  219.     BLOCK "VarFileInfo"
  220.     BEGIN
  221.         VALUE "Translation", 0x409, 1200
  222.     END
  223. END
  224. #endif    // !_MAC
  225. /////////////////////////////////////////////////////////////////////////////
  226. //
  227. // DESIGNINFO
  228. //
  229. #ifdef APSTUDIO_INVOKED
  230. GUIDELINES DESIGNINFO DISCARDABLE 
  231. BEGIN
  232.     IDD_ABOUTBOX, DIALOG
  233.     BEGIN
  234.         LEFTMARGIN, 7
  235.         RIGHTMARGIN, 228
  236.         TOPMARGIN, 7
  237.         BOTTOMMARGIN, 64
  238.     END
  239.     IDD_PREVIEW, DIALOG
  240.     BEGIN
  241.         LEFTMARGIN, 4
  242.         TOPMARGIN, 3
  243.         BOTTOMMARGIN, 16
  244.     END
  245. END
  246. #endif    // APSTUDIO_INVOKED
  247. /////////////////////////////////////////////////////////////////////////////
  248. //
  249. // String Table
  250. //
  251. STRINGTABLE PRELOAD DISCARDABLE 
  252. BEGIN
  253.     IDR_MAINFRAME           "PrintPreview"
  254.     IDR_PRINTPTYPE          "nPrintPnPrintPnnnPrintPreview.DocumentnPrintP Document"
  255. END
  256. STRINGTABLE PRELOAD DISCARDABLE 
  257. BEGIN
  258.     AFX_IDS_APP_TITLE       "PrintPreview"
  259.     AFX_IDS_IDLEMESSAGE     "Ready"
  260. END
  261. STRINGTABLE DISCARDABLE 
  262. BEGIN
  263.     ID_INDICATOR_EXT        "EXT"
  264.     ID_INDICATOR_CAPS       "CAP"
  265.     ID_INDICATOR_NUM        "NUM"
  266.     ID_INDICATOR_SCRL       "SCRL"
  267.     ID_INDICATOR_OVR        "OVR"
  268.     ID_INDICATOR_REC        "REC"
  269. END
  270. STRINGTABLE DISCARDABLE 
  271. BEGIN
  272.     ID_FILE_NEW             "Create a new documentnNew"
  273.     ID_FILE_OPEN            "Open an existing documentnOpen"
  274.     ID_FILE_CLOSE           "Close the active documentnClose"
  275.     ID_FILE_SAVE            "Save the active documentnSave"
  276.     ID_FILE_SAVE_AS         "Save the active document with a new namenSave As"
  277.     ID_FILE_PAGE_SETUP      "Change the printing optionsnPage Setup"
  278.     ID_FILE_PRINT_SETUP     "Change the printer and printing optionsnPrint Setup"
  279.     ID_FILE_PRINT           "Print the active documentnPrint"
  280.     ID_FILE_PRINT_PREVIEW   "Display full pagesnPrint Preview"
  281. END
  282. STRINGTABLE DISCARDABLE 
  283. BEGIN
  284.     ID_APP_ABOUT            "Display program information, version number and copyrightnAbout"
  285.     ID_APP_EXIT             "Quit the application; prompts to save documentsnExit"
  286. END
  287. STRINGTABLE DISCARDABLE 
  288. BEGIN
  289.     ID_FILE_MRU_FILE1       "Open this document"
  290.     ID_FILE_MRU_FILE2       "Open this document"
  291.     ID_FILE_MRU_FILE3       "Open this document"
  292.     ID_FILE_MRU_FILE4       "Open this document"
  293.     ID_FILE_MRU_FILE5       "Open this document"
  294.     ID_FILE_MRU_FILE6       "Open this document"
  295.     ID_FILE_MRU_FILE7       "Open this document"
  296.     ID_FILE_MRU_FILE8       "Open this document"
  297.     ID_FILE_MRU_FILE9       "Open this document"
  298.     ID_FILE_MRU_FILE10      "Open this document"
  299.     ID_FILE_MRU_FILE11      "Open this document"
  300.     ID_FILE_MRU_FILE12      "Open this document"
  301.     ID_FILE_MRU_FILE13      "Open this document"
  302.     ID_FILE_MRU_FILE14      "Open this document"
  303.     ID_FILE_MRU_FILE15      "Open this document"
  304.     ID_FILE_MRU_FILE16      "Open this document"
  305. END
  306. STRINGTABLE DISCARDABLE 
  307. BEGIN
  308.     ID_NEXT_PANE            "Switch to the next window panenNext Pane"
  309.     ID_PREV_PANE            "Switch back to the previous window panenPrevious Pane"
  310. END
  311. STRINGTABLE DISCARDABLE 
  312. BEGIN
  313.     ID_WINDOW_NEW           "Open another window for the active documentnNew Window"
  314.     ID_WINDOW_ARRANGE       "Arrange icons at the bottom of the windownArrange Icons"
  315.     ID_WINDOW_CASCADE       "Arrange windows so they overlapnCascade Windows"
  316.     ID_WINDOW_TILE_HORZ     "Arrange windows as non-overlapping tilesnTile Windows"
  317.     ID_WINDOW_TILE_VERT     "Arrange windows as non-overlapping tilesnTile Windows"
  318.     ID_WINDOW_SPLIT         "Split the active window into panesnSplit"
  319. END
  320. STRINGTABLE DISCARDABLE 
  321. BEGIN
  322.     ID_EDIT_CLEAR           "Erase the selectionnErase"
  323.     ID_EDIT_CLEAR_ALL       "Erase everythingnErase All"
  324.     ID_EDIT_COPY            "Copy the selection and put it on the ClipboardnCopy"
  325.     ID_EDIT_CUT             "Cut the selection and put it on the ClipboardnCut"
  326.     ID_EDIT_FIND            "Find the specified textnFind"
  327.     ID_EDIT_PASTE           "Insert Clipboard contentsnPaste"
  328.     ID_EDIT_REPEAT          "Repeat the last actionnRepeat"
  329.     ID_EDIT_REPLACE         "Replace specific text with different textnReplace"
  330.     ID_EDIT_SELECT_ALL      "Select the entire documentnSelect All"
  331.     ID_EDIT_UNDO            "Undo the last actionnUndo"
  332.     ID_EDIT_REDO            "Redo the previously undone actionnRedo"
  333. END
  334. STRINGTABLE DISCARDABLE 
  335. BEGIN
  336.     ID_VIEW_TOOLBAR         "Show or hide the toolbarnToggle ToolBar"
  337.     ID_VIEW_STATUS_BAR      "Show or hide the status barnToggle StatusBar"
  338. END
  339. STRINGTABLE DISCARDABLE 
  340. BEGIN
  341.     AFX_IDS_SCSIZE          "Change the window size"
  342.     AFX_IDS_SCMOVE          "Change the window position"
  343.     AFX_IDS_SCMINIMIZE      "Reduce the window to an icon"
  344.     AFX_IDS_SCMAXIMIZE      "Enlarge the window to full size"
  345.     AFX_IDS_SCNEXTWINDOW    "Switch to the next document window"
  346.     AFX_IDS_SCPREVWINDOW    "Switch to the previous document window"
  347.     AFX_IDS_SCCLOSE         "Close the active window and prompts to save the documents"
  348. END
  349. STRINGTABLE DISCARDABLE 
  350. BEGIN
  351.     AFX_IDS_SCRESTORE       "Restore the window to normal size"
  352.     AFX_IDS_SCTASKLIST      "Activate Task List"
  353.     AFX_IDS_MDICHILD        "Activate this window"
  354. END
  355. STRINGTABLE DISCARDABLE 
  356. BEGIN
  357.     AFX_IDS_PREVIEW_CLOSE   "Close print preview modenCancel Preview"
  358. END
  359. STRINGTABLE DISCARDABLE 
  360. BEGIN
  361.     ID_FILE_IMPROVEDPRINTPREVIEW 
  362.                             "Demonstrates the improved print preview functionnImproved Print Preview"
  363. END
  364. STRINGTABLE DISCARDABLE 
  365. BEGIN
  366.     AFX_ID_PREVIEW_CLOSE    "Close the previewnClose Preview"
  367.     AFX_ID_PREVIEW_NUMPAGE  "Display single page or double page viewn1 Page / 2 Page"
  368.     AFX_ID_PREVIEW_NEXT     "Go to the next pagenNext Page"
  369.     AFX_ID_PREVIEW_PREV     "Go to the previous pagenPrevious Page"
  370.     AFX_ID_PREVIEW_PRINT    "Print the previewed itemnPrint"
  371.     AFX_ID_PREVIEW_ZOOMIN   "Increase magnification of preview pagenZoom In"
  372.     AFX_ID_PREVIEW_ZOOMOUT  "Decrease magnification of preview pagenZoom Out"
  373. END
  374. #endif    // English (U.S.) resources
  375. /////////////////////////////////////////////////////////////////////////////
  376. /////////////////////////////////////////////////////////////////////////////
  377. // English (U.K.) resources
  378. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
  379. #ifdef _WIN32
  380. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
  381. #pragma code_page(1252)
  382. #endif //_WIN32
  383. #ifdef APSTUDIO_INVOKED
  384. /////////////////////////////////////////////////////////////////////////////
  385. //
  386. // TEXTINCLUDE
  387. //
  388. 1 TEXTINCLUDE DISCARDABLE 
  389. BEGIN
  390.     "resource.h"
  391. END
  392. 2 TEXTINCLUDE DISCARDABLE 
  393. BEGIN
  394.     "#include ""afxres.h""rn"
  395.     ""
  396. END
  397. 3 TEXTINCLUDE DISCARDABLE 
  398. BEGIN
  399.     "#define _AFX_NO_SPLITTER_RESOURCESrn"
  400.     "#define _AFX_NO_OLE_RESOURCESrn"
  401.     "#define _AFX_NO_TRACKER_RESOURCESrn"
  402.     "#define _AFX_NO_PROPERTY_RESOURCESrn"
  403.     "rn"
  404.     "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)rn"
  405.     "#ifdef _WIN32rn"
  406.     "LANGUAGE 9, 1rn"
  407.     "#pragma code_page(1252)rn"
  408.     "#endif //_WIN32rn"
  409.     "#include ""res\PrintPreview.rc2""  // non-Microsoft Visual C++ edited resourcesrn"
  410.     "#include ""afxres.rc""         // Standard componentsrn"
  411.     "#include ""afxprint.rc""       // printing/print preview resourcesrn"
  412.     "#endifrn"
  413.     ""
  414. END
  415. #endif    // APSTUDIO_INVOKED
  416. #endif    // English (U.K.) resources
  417. /////////////////////////////////////////////////////////////////////////////
  418. #ifndef APSTUDIO_INVOKED
  419. /////////////////////////////////////////////////////////////////////////////
  420. //
  421. // Generated from the TEXTINCLUDE 3 resource.
  422. //
  423. #define _AFX_NO_SPLITTER_RESOURCES
  424. #define _AFX_NO_OLE_RESOURCES
  425. #define _AFX_NO_TRACKER_RESOURCES
  426. #define _AFX_NO_PROPERTY_RESOURCES
  427. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
  428. #ifdef _WIN32
  429. LANGUAGE 9, 1
  430. #pragma code_page(1252)
  431. #endif //_WIN32
  432. #include "resPrintPreview.rc2"  // non-Microsoft Visual C++ edited resources
  433. #include "afxres.rc"         // Standard components
  434. #include "afxprint.rc"       // printing/print preview resources
  435. #endif
  436. /////////////////////////////////////////////////////////////////////////////
  437. #endif    // not APSTUDIO_INVOKED