QZoomViewDemo.rc
上传用户:xp9161
上传日期:2009-12-21
资源大小:70k
文件大小:13k
源码类别:

Windows编程

开发平台:

Visual C++

  1. // Microsoft Visual C++ 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                    "res\QZoomViewDemo.ico"
  26. IDR_QZoomViewDemoTYPE   ICON                    "res\QZoomViewDemoDoc.ico"
  27. /////////////////////////////////////////////////////////////////////////////
  28. //
  29. // Bitmap
  30. //
  31. IDR_MAINFRAME           BITMAP                  "res\Toolbar.bmp"
  32. /////////////////////////////////////////////////////////////////////////////
  33. //
  34. // Toolbar
  35. //
  36. IDR_MAINFRAME TOOLBAR  16, 15
  37. BEGIN
  38.     BUTTON      ID_TOOL_ZOOMIN
  39.     BUTTON      ID_TOOL_ZOOMOUT
  40.     BUTTON      ID_TOOL_HAND
  41.     SEPARATOR
  42.     BUTTON      ID_ZOOM_ZOOMIN
  43.     BUTTON      ID_ZOOM_ZOOMOUT
  44.     BUTTON      ID_VIEW_ZOOMTOWINDOW
  45.     SEPARATOR
  46.     BUTTON      ID_APP_ABOUT
  47. END
  48. /////////////////////////////////////////////////////////////////////////////
  49. //
  50. // Menu
  51. //
  52. IDR_MAINFRAME MENU 
  53. BEGIN
  54.     POPUP "&File"
  55.     BEGIN
  56.         MENUITEM "E&xit",                       ID_APP_EXIT
  57.     END
  58.     POPUP "&View"
  59.     BEGIN
  60.         POPUP "&Zoom"
  61.         BEGIN
  62.             MENUITEM "Zoom &IntCtrl+Num+",         ID_ZOOM_ZOOMIN
  63.             MENUITEM "Zoom &OuttCtrl+Num-",        ID_ZOOM_ZOOMOUT
  64.             MENUITEM SEPARATOR
  65.             MENUITEM "&35%",                        ID_ZOOM_01
  66.             MENUITEM "&50%",                        ID_ZOOM_02
  67.             MENUITEM "&70%",                        ID_ZOOM_03
  68.             MENUITEM "1&00%tCtrl+0",               ID_ZOOM_04
  69.             MENUITEM "&140%",                       ID_ZOOM_05
  70.             MENUITEM "&200%",                       ID_ZOOM_06
  71.             MENUITEM "280%",                        ID_ZOOM_07
  72.             MENUITEM "&400%",                       ID_ZOOM_08
  73.             MENUITEM "5&60%",                       148
  74.             MENUITEM "&800%",                       ID_ZOOM_10
  75.             MENUITEM SEPARATOR
  76.             MENUITEM "O&ther...",                   ID_ZOOM_OTHER
  77.         END
  78.         MENUITEM "Zoom to &windowtCtrl+1",     ID_VIEW_ZOOMTOWINDOW
  79.         MENUITEM SEPARATOR
  80.         MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
  81.         MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
  82.     END
  83.     POPUP "&Tool"
  84.     BEGIN
  85.         MENUITEM "Zoom &intI",                 ID_TOOL_ZOOMIN
  86.         MENUITEM "Zoom &outtO",                ID_TOOL_ZOOMOUT
  87.         MENUITEM SEPARATOR
  88.         MENUITEM "&HandtH",                    ID_TOOL_HAND
  89.     END
  90.     POPUP "&Help"
  91.     BEGIN
  92.         MENUITEM "&About QZoomView...",         ID_APP_ABOUT
  93.     END
  94. END
  95. /////////////////////////////////////////////////////////////////////////////
  96. //
  97. // Accelerator
  98. //
  99. IDR_MAINFRAME ACCELERATORS 
  100. BEGIN
  101.     "1",            ID_VIEW_ZOOMTOWINDOW,   VIRTKEY, CONTROL, NOINVERT
  102.     "0",            ID_ZOOM_04,             VIRTKEY, CONTROL, NOINVERT
  103.     VK_ADD,         ID_ZOOM_ZOOMIN,         VIRTKEY, CONTROL, NOINVERT
  104.     VK_SUBTRACT,    ID_ZOOM_ZOOMOUT,        VIRTKEY, CONTROL, NOINVERT
  105.     "I",            ID_TOOL_ZOOMIN,         VIRTKEY, NOINVERT
  106.     "O",            ID_TOOL_ZOOMOUT,        VIRTKEY, NOINVERT
  107.     "H",            ID_TOOL_HAND,           VIRTKEY, NOINVERT
  108.     VK_F1,          ID_APP_ABOUT,           VIRTKEY, NOINVERT
  109. END
  110. /////////////////////////////////////////////////////////////////////////////
  111. //
  112. // Dialog
  113. //
  114. IDD_ABOUTBOX DIALOGEX 0, 0, 235, 118
  115. STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
  116.     WS_SYSMENU
  117. CAPTION "About QZoomView"
  118. FONT 8, "MS Shell Dlg", 0, 0, 0x1
  119. BEGIN
  120.     ICON            IDR_MAINFRAME,IDC_STATIC,11,17,21,20
  121.     LTEXT           "QZoomViewDemo 1.0",IDC_STATIC,40,10,119,8,SS_NOPREFIX
  122.     DEFPUSHBUTTON   "OK",IDOK,178,7,50,16,WS_GROUP
  123.     GROUPBOX        "",IDC_STATIC,36,26,165,59
  124.     LTEXT           "Demonstration of QZoomView MFC classnnPress I, O, or H to switch to different tools. Use Ctrl to modify operation. Click Ctrl++, or Ctrl+- to zoom. Use Ctrl with the mouse wheel.",
  125.                     IDC_STATIC,42,36,153,45
  126.     LTEXT           "Copyright (C) Sjaak Priester, 2003nwww.sjaakpriester.nl",
  127.                     IDC_STATIC,36,91,155,20
  128. END
  129. IDD_ZOOMLEVEL DIALOGEX 0, 0, 186, 79
  130. STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
  131.     WS_SYSMENU
  132. CAPTION "Zoom Level"
  133. FONT 8, "MS Shell Dlg", 400, 0, 0x1
  134. BEGIN
  135.     LTEXT           "Enter a Zoom Level",IDC_STATIC,23,17,62,8
  136.     EDITTEXT        IDC_ZOOMEDIT,23,30,40,14,ES_AUTOHSCROLL
  137.     CONTROL         "",IDC_ZOOMSPIN,"msctls_updown32",UDS_SETBUDDYINT | 
  138.                     UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | 
  139.                     UDS_NOTHOUSANDS,61,30,11,14
  140.     LTEXT           "(Percentage between 3 and 2000)",IDC_STATIC,23,52,111,8
  141.     DEFPUSHBUTTON   "OK",IDOK,129,7,50,14
  142.     PUSHBUTTON      "Cancel",IDCANCEL,129,24,50,14
  143. END
  144. /////////////////////////////////////////////////////////////////////////////
  145. //
  146. // Version
  147. //
  148. VS_VERSION_INFO VERSIONINFO
  149.  FILEVERSION 1,0,0,1
  150.  PRODUCTVERSION 1,0,0,1
  151.  FILEFLAGSMASK 0x3fL
  152. #ifdef _DEBUG
  153.  FILEFLAGS 0x1L
  154. #else
  155.  FILEFLAGS 0x0L
  156. #endif
  157.  FILEOS 0x4L
  158.  FILETYPE 0x1L
  159.  FILESUBTYPE 0x0L
  160. BEGIN
  161.     BLOCK "StringFileInfo"
  162.     BEGIN
  163.         BLOCK "040904e4"
  164.         BEGIN
  165.             VALUE "CompanyName", "Cruquius Soft"
  166.             VALUE "FileDescription", "Demonstration of QZoomView MFC class"
  167.             VALUE "FileVersion", "1.0.0.1"
  168.             VALUE "InternalName", "QZoomViewDemo.exe"
  169.             VALUE "LegalCopyright", "(c) 2003, Cruquius Soft, Amsterdam.  All rights reserved."
  170.             VALUE "OriginalFilename", "QZoomViewDemo.exe"
  171.             VALUE "ProductName", "QZoomView"
  172.             VALUE "ProductVersion", "1.0.0.1"
  173.         END
  174.     END
  175.     BLOCK "VarFileInfo"
  176.     BEGIN
  177.         VALUE "Translation", 0x409, 1252
  178.     END
  179. END
  180. /////////////////////////////////////////////////////////////////////////////
  181. //
  182. // DESIGNINFO
  183. //
  184. #ifdef APSTUDIO_INVOKED
  185. GUIDELINES DESIGNINFO 
  186. BEGIN
  187.     IDD_ABOUTBOX, DIALOG
  188.     BEGIN
  189.         LEFTMARGIN, 7
  190.         RIGHTMARGIN, 228
  191.         TOPMARGIN, 7
  192.         BOTTOMMARGIN, 111
  193.     END
  194.     IDD_ZOOMLEVEL, DIALOG
  195.     BEGIN
  196.         LEFTMARGIN, 7
  197.         RIGHTMARGIN, 179
  198.         TOPMARGIN, 7
  199.         BOTTOMMARGIN, 72
  200.     END
  201. END
  202. #endif    // APSTUDIO_INVOKED
  203. /////////////////////////////////////////////////////////////////////////////
  204. //
  205. // RT_MANIFEST
  206. //
  207. IDR_MANIFEST            RT_MANIFEST             "res\QZoomViewDemo.manifest"
  208. /////////////////////////////////////////////////////////////////////////////
  209. //
  210. // Cursor
  211. //
  212. IDC_GRIPCLOSED          CURSOR                  "res\grip_closed.cur"
  213. IDC_GRIPOPEN            CURSOR                  "res\grip_open.cur"
  214. IDC_LOUPEMINUS          CURSOR                  "res\loupe_minus.cur"
  215. IDC_LOUPEPLUS           CURSOR                  "res\loupe_plus.cur"
  216. IDC_LOUPE               CURSOR                  "res\loupe.cur"
  217. /////////////////////////////////////////////////////////////////////////////
  218. //
  219. // String Table
  220. //
  221. STRINGTABLE 
  222. BEGIN
  223.     IDR_MAINFRAME           "Demonstration of QZoomView MFC classnnQZoomViewDemonnnQZoomViewDemo.DocumentnQZoomViewDemo.Document"
  224.     ID_TOOL_ZOOMIN          "Zoom In tool. Use cursor to Zoom In, or drag to Zoom In areanZoom In tool"
  225.     ID_TOOL_ZOOMOUT         "Zoom Out tool. Use cursor to Zoom Out, or drag to Zoom In areanZoom Out tool"
  226.     ID_TOOL_HAND            "Drag tool. Drag document in windownDrag tool"
  227.     ID_ZOOM_01              "Zoom to 35%"
  228.     ID_ZOOM_02              "Zoom to 50% (1/2)"
  229.     ID_ZOOM_03              "Zoom to 70%"
  230.     ID_ZOOM_04              "Zoom to 100% (actual size)"
  231. END
  232. STRINGTABLE 
  233. BEGIN
  234.     AFX_IDS_APP_TITLE       "QZoomViewDemo"
  235.     AFX_IDS_IDLEMESSAGE     "Press Ctrl and + on the numeric keypad to zoom in"
  236. END
  237. STRINGTABLE 
  238. BEGIN
  239.     ID_INDICATOR_EXT        "EXT"
  240.     ID_INDICATOR_CAPS       "CAP"
  241.     ID_INDICATOR_NUM        "NUM"
  242.     ID_INDICATOR_SCRL       "SCRL"
  243.     ID_INDICATOR_OVR        "OVR"
  244.     ID_INDICATOR_REC        "REC"
  245.     ID_INDICATOR_ZOOM       "9999.99%  "
  246. END
  247. STRINGTABLE 
  248. BEGIN
  249.     ID_APP_ABOUT            "Display information about QZoomViewnAbout"
  250.     ID_APP_EXIT             "Quit the demonstration of QZoomViewnExit"
  251. END
  252. STRINGTABLE 
  253. BEGIN
  254.     ID_VIEW_TOOLBAR         "Show or hide the toolbarnToggle ToolBar"
  255.     ID_VIEW_STATUS_BAR      "Show or hide the status barnToggle StatusBar"
  256. END
  257. STRINGTABLE 
  258. BEGIN
  259.     AFX_IDS_SCSIZE          "Change the window size"
  260.     AFX_IDS_SCMOVE          "Change the window position"
  261.     AFX_IDS_SCMINIMIZE      "Reduce the window to an icon"
  262.     AFX_IDS_SCMAXIMIZE      "Enlarge the window to full size"
  263.     AFX_IDS_SCNEXTWINDOW    "Switch to the next document window"
  264.     AFX_IDS_SCPREVWINDOW    "Switch to the previous document window"
  265.     AFX_IDS_SCCLOSE         "Close the active window and prompts to save the documents"
  266. END
  267. STRINGTABLE 
  268. BEGIN
  269.     AFX_IDS_SCRESTORE       "Restore the window to normal size"
  270.     AFX_IDS_SCTASKLIST      "Activate Task List"
  271. END
  272. STRINGTABLE 
  273. BEGIN
  274.     ID_ZOOM_05              "Zoom to 140%"
  275.     ID_ZOOM_06              "Zoom to 200% (2x)"
  276.     ID_ZOOM_07              "Zoom to 280%"
  277.     ID_ZOOM_08              "Zoom to 400% (4x)"
  278.     ID_ZOOM_09              "Zoom to 560%"
  279.     ID_ZOOM_10              "Zoom to 800% (8x)"
  280.     ID_ZOOM_OTHER           "Enter an arbitrary Zoom Level"
  281.     ID_VIEW_ZOOMTOWINDOW    "Zoom till document fits conveniently in windownZoom to window"
  282.     ID_ZOOM_ZOOMIN          "Zoom In one stepnZoom In"
  283.     ID_ZOOM_ZOOMOUT         "Zoom Out one stepnZoom Out"
  284. END
  285. STRINGTABLE 
  286. BEGIN
  287.     IDS_MESSAGE             "Click anywhere with the + loupe to zoom in"
  288.     IDS_STRING1001          "Drag the loupe to zoom to a rectangle"
  289.     IDS_STRING1002          "Press O to switch to the - loupe"
  290.     IDS_STRING1003          "Click anywhere with the - loupe to zoom out"
  291.     IDS_STRING1004          "Press I to switch to the + loupe"
  292.     IDS_STRING1005          "Ctrl switches between + and - loupe"
  293.     IDS_STRING1006          "Press Ctrl and + on the numeric keypad to zoom in"
  294.     IDS_STRING1007          "Press Ctrl and - on the numeric keypad to zoom out"
  295. END
  296. STRINGTABLE 
  297. BEGIN
  298.     IDS_STRING1008          "Press H to switch to the grabber hand"
  299.     IDS_STRING1009          "Drag the document with the grabber hand"
  300.     IDS_STRING1010          "Press the space bar to temporarely switch to the grabber hand"
  301.     IDS_STRING1011          "Use Ctrl with the mouse wheel to zoom in, or zoom out"
  302.     IDS_STRING1012          "Press Ctrl+0 to set the zoom level to 100%"
  303.     IDS_STRING1013          "Press Ctrl+1 to zoom to the window size"
  304. END
  305. #endif    // English (U.S.) resources
  306. /////////////////////////////////////////////////////////////////////////////
  307. /////////////////////////////////////////////////////////////////////////////
  308. // Dutch (Netherlands) resources
  309. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NLD)
  310. #ifdef _WIN32
  311. LANGUAGE LANG_DUTCH, SUBLANG_DUTCH
  312. #pragma code_page(1252)
  313. #endif //_WIN32
  314. #ifdef APSTUDIO_INVOKED
  315. /////////////////////////////////////////////////////////////////////////////
  316. //
  317. // TEXTINCLUDE
  318. //
  319. 1 TEXTINCLUDE 
  320. BEGIN
  321.     "resource.h"
  322. END
  323. 2 TEXTINCLUDE 
  324. BEGIN
  325.     "#include ""afxres.h""rn"
  326.     ""
  327. END
  328. 3 TEXTINCLUDE 
  329. BEGIN
  330.     "#define _AFX_NO_SPLITTER_RESOURCESrn"
  331.     "#define _AFX_NO_OLE_RESOURCESrn"
  332.     "#define _AFX_NO_TRACKER_RESOURCESrn"
  333.     "#define _AFX_NO_PROPERTY_RESOURCESrn"
  334.     "rn"
  335.     "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)rn"
  336.     "LANGUAGE 9, 1rn"
  337.     "#pragma code_page(1252)rn"
  338.     "#include ""res\QZoomViewDemo.rc2""  // non-Microsoft Visual C++ edited resourcesrn"
  339.     "#include ""afxres.rc""         // Standard componentsrn"
  340.     "#include ""afxprint.rc""       // printing/print preview resourcesrn"
  341.     "#endifrn"
  342.     ""
  343. END
  344. #endif    // APSTUDIO_INVOKED
  345. #endif    // Dutch (Netherlands) resources
  346. /////////////////////////////////////////////////////////////////////////////
  347. #ifndef APSTUDIO_INVOKED
  348. /////////////////////////////////////////////////////////////////////////////
  349. //
  350. // Generated from the TEXTINCLUDE 3 resource.
  351. //
  352. #define _AFX_NO_SPLITTER_RESOURCES
  353. #define _AFX_NO_OLE_RESOURCES
  354. #define _AFX_NO_TRACKER_RESOURCES
  355. #define _AFX_NO_PROPERTY_RESOURCES
  356. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
  357. LANGUAGE 9, 1
  358. #pragma code_page(1252)
  359. #include "resQZoomViewDemo.rc2"  // non-Microsoft Visual C++ edited resources
  360. #include "afxres.rc"         // Standard components
  361. #include "afxprint.rc"       // printing/print preview resources
  362. #endif
  363. /////////////////////////////////////////////////////////////////////////////
  364. #endif    // not APSTUDIO_INVOKED