PATRON.RC
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:12k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * PATRON.RC
  3.  * Patron Chapter 17
  4.  *
  5.  * Resources such as icons, menus, strings, accelerators, and dialogs.
  6.  *
  7.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13. #include <windows.h>
  14. #include <classres.h>
  15. #include "resource.h"
  16. //These IDBs are from BTTNCUR.H
  17. IDB_STANDARDIMAGES72    BITMAP gizmo72.bmp
  18. IDB_STANDARDIMAGES96    BITMAP gizmo96.bmp
  19. IDB_STANDARDIMAGES120   BITMAP gizmo120.bmp
  20. Icon                ICON   patron.ico
  21. #ifdef MDI
  22. IDR_DOCUMENTICON    ICON   document.ico
  23. #endif
  24. IDR_MENU    MENU MOVEABLE DISCARDABLE
  25.     BEGIN
  26.      POPUP "&File"
  27.       BEGIN
  28.        MENUITEM "&New",                     IDM_FILENEW
  29.        MENUITEM "&Open...",                 IDM_FILEOPEN
  30.        MENUITEM "&Close",                   IDM_FILECLOSE
  31.        MENUITEM "&Save",                    IDM_FILESAVE
  32.        MENUITEM "Save &As...",              IDM_FILESAVEAS
  33.        MENUITEM SEPARATOR
  34.        MENUITEM "&Print...",                IDM_FILEPRINT
  35.        MENUITEM "P&rinter Setup...",        IDM_FILEPRINTERSETUP
  36.        MENUITEM SEPARATOR
  37.        MENUITEM "E&xit",                    IDM_FILEEXIT
  38.       END
  39.      POPUP "&Edit"
  40.       BEGIN
  41.        MENUITEM "&CuttCtrl+X",             IDM_EDITCUT
  42.        MENUITEM "C&opytCtrl+C",            IDM_EDITCOPY
  43.        MENUITEM "&PastetCtrl+V",           IDM_EDITPASTE
  44.        MENUITEM "Paste &Special...",        IDM_EDITPASTESPECIAL
  45.        MENUITEM SEPARATOR
  46.        MENUITEM "&Delete ObjecttDel",      IDM_EDITDELETEOBJECT
  47.        //CHAPTER17MOD
  48.        MENUITEM SEPARATOR
  49.        MENUITEM "&Insert Object...",        IDM_EDITINSERTOBJECT
  50.        MENUITEM "&Object",                  IDM_EDITOBJECT GRAYED
  51.        //End CHAPTER17MOD
  52.       END
  53.      POPUP "&Page"
  54.       BEGIN
  55.        MENUITEM "&New PagetCtrl+N",        IDM_PAGENEWPAGE
  56.        MENUITEM "&Delete PagetCtrl+D",     IDM_PAGEDELETEPAGE
  57.        MENUITEM SEPARATOR
  58.        MENUITEM "Nex&t PagetPage Down",    IDM_PAGENEXTPAGE
  59.        MENUITEM "&Previous PagetPage Up",  IDM_PAGEPREVIOUSPAGE
  60.        MENUITEM SEPARATOR
  61.        MENUITEM "&First PagetCtrl+Home",   IDM_PAGEFIRSTPAGE
  62.        MENUITEM "&Last PagetCtrl+End",     IDM_PAGELASTPAGE
  63.       END
  64.     #ifdef MDI
  65.      POPUP   "&Window"
  66.       BEGIN
  67.        MENUITEM "&Cascade",                 IDM_WINDOWCASCADE
  68.        MENUITEM "Tile &Horizontally",       IDM_WINDOWTILEHORZ
  69.        MENUITEM "&Tile Vertically",         IDM_WINDOWTILEVERT
  70.        MENUITEM "Arrange &Icons",           IDM_WINDOWICONS
  71.       END
  72.     #endif
  73.      POPUP "&Help"
  74.       BEGIN
  75.        MENUITEM "&About Patron...",         IDM_HELPABOUT
  76.       END
  77.     END
  78. //CHAPTER17MOD
  79. IDR_RIGHTPOPUPMENU MENU MOVEABLE DISCARDABLE
  80.     BEGIN
  81.      MENUITEM "Cut",             IDM_EDITCUT
  82.      MENUITEM "Copy",            IDM_EDITCOPY
  83.      MENUITEM SEPARATOR
  84.      MENUITEM "Delete Object",   IDM_EDITDELETEOBJECT
  85.      MENUITEM SEPARATOR
  86.      MENUITEM "Object",          IDM_EDITOBJECT GRAYED
  87.     END
  88. //End CHAPTER17MOD
  89. //Stringtable for Frame windows
  90. STRINGTABLE
  91.     BEGIN
  92.      IDS_CAPTION,            "Patron Chapter 17"
  93.      IDS_UNTITLED,           "(Untitled)"
  94.      IDS_FILEDIRTY,          "%s has been modified.nDo you wish to save it?"
  95.      IDS_DEFEXT,             "PTN"
  96.      IDS_DOTEXT,             ".PTN"
  97.      IDS_FILEOPENFILTER,     "Patron Pages (*.ptn)|*.ptn|"
  98.      IDS_FILESAVEFILTER,     "Patron (*.ptn)|*.ptn|"
  99.      IDS_FILEOPEN,           "File Open"
  100.      IDS_FILESAVEAS,         "File Save As"
  101.     END
  102. //Stringtable for document windows.
  103. STRINGTABLE
  104.     BEGIN
  105.      IDS_CLIPBOARDFORMAT,    "Patron Objects"
  106.      IDS_DOCUMENTCAPTION,    "Document Error"
  107.      IDS_VERSIONMISMATCH,    "File data is not valid."
  108.      IDS_FILELOADERROR,      "Could not read the requested document."
  109.      IDS_FILESAVEERROR,      "Could not write to the specified document."
  110.      IDS_FILEDOESNOTEXIST,   "Document does not exist on the file system."
  111.      IDS_FILEOPENERROR,      "Could not open the requested document."
  112.      IDS_UNKNOWNERROR,       "Action failed due to an unknown error."
  113.      IDS_PRINTERROR,         "Printing was aborted due to user action or error."
  114.      IDS_DOCUMENTNAME,       "Patron Objects"
  115.      IDS_PASTEASPATRON,      "Patron Objects"
  116.      IDS_PASTEMETAFILE,      "Metafile"
  117.      IDS_PASTEASMETAFILE,    "a Metafile"
  118.      IDS_PASTEDIB,           "Device-Independent Bitmap"
  119.      IDS_PASTEASDIB,         "a Device-Independent Bitmap"
  120.      IDS_PASTEBITMAP,        "Bitmap"
  121.      IDS_PASTEASBITMAP,      "a Bitmap"
  122.      //CHAPTER17MOD
  123.      IDS_PASTEOBJECT,        "%s Object"
  124.      IDS_PASTEASOBJECT,      "%s Object"
  125.      //End CHAPTER17MOD
  126.     END
  127. IDR_ACCELERATORS ACCELERATORS
  128.    BEGIN
  129.     VK_DELETE,    IDM_EDITCUT, SHIFT, VIRTKEY
  130.     VK_INSERT,    IDM_EDITCOPY, CONTROL, VIRTKEY
  131.     VK_INSERT,    IDM_EDITPASTE, SHIFT, VIRTKEY
  132.     "^X",         IDM_EDITCUT
  133.     "^C",         IDM_EDITCOPY
  134.     "^V",         IDM_EDITPASTE
  135.     "^N",         IDM_PAGENEWPAGE
  136.     "^n",         IDM_PAGENEWPAGE
  137.     "^D",         IDM_PAGEDELETEPAGE
  138.     "^d",         IDM_PAGEDELETEPAGE
  139.     VK_NEXT,      IDM_PAGENEXTPAGE, VIRTKEY
  140.     VK_PRIOR,     IDM_PAGEPREVIOUSPAGE, VIRTKEY
  141.     VK_HOME,      IDM_PAGEFIRSTPAGE, CONTROL, VIRTKEY
  142.     VK_END,       IDM_PAGELASTPAGE, CONTROL, VIRTKEY
  143.     VK_DELETE,    IDM_EDITDELETEOBJECT, VIRTKEY
  144.    END
  145. //Tables and such for StatStrip
  146. IDR_STATMESSAGEMAP RCDATA
  147.     BEGIN
  148.      ID_MESSAGEEMPTY,           IDS_EMPTYMESSAGE,
  149.      ID_MESSAGEREADY,           IDS_READYMESSAGE
  150.      ID_MENUSYS,                IDS_MENUMESSAGESYSTEM,
  151.      SC_SIZE,                   IDS_SYSMESSAGESIZE,
  152.      SC_MOVE,                   IDS_SYSMESSAGEMOVE,
  153.      SC_MINIMIZE,               IDS_SYSMESSAGEMINIMIZE,
  154.      SC_MAXIMIZE,               IDS_SYSMESSAGEMAXIMIZE,
  155.      SC_NEXTWINDOW,             IDS_SYSMESSAGENEXTWINDOW,
  156.      SC_PREVWINDOW,             IDS_SYSMESSAGEPREVWINDOW,
  157.      SC_CLOSE,                  IDS_SYSMESSAGECLOSE,
  158.      SC_RESTORE,                IDS_SYSMESSAGERESTORE,
  159.      SC_TASKLIST,               IDS_SYSMESSAGETASKLIST,
  160.      ID_MENUFILE,               IDS_MENUMESSAGEFILE,
  161.      IDM_FILENEW,               IDS_ITEMMESSAGEFILENEW,
  162.      IDM_FILEOPEN,              IDS_ITEMMESSAGEFILEOPEN,
  163.      IDM_FILECLOSE,             IDS_ITEMMESSAGEFILECLOSE,
  164.      IDM_FILESAVE,              IDS_ITEMMESSAGEFILESAVE,
  165.      IDM_FILESAVEAS,            IDS_ITEMMESSAGEFILESAVEAS,
  166.      IDM_FILEPRINT,             IDS_ITEMMESSAGEFILEPRINT,
  167.      IDM_FILEPRINTERSETUP,      IDS_ITEMMESSAGEFILEPRINTERSETUP,
  168.      IDM_FILEEXIT,              IDS_ITEMMESSAGEFILEEXIT,
  169.      ID_MENUEDIT,               IDS_MENUMESSAGEEDIT,
  170.      IDM_EDITUNDO,              IDS_ITEMMESSAGEEDITUNDO,
  171.      IDM_EDITCUT,               IDS_ITEMMESSAGEEDITCUT,
  172.      IDM_EDITCOPY,              IDS_ITEMMESSAGEEDITCOPY,
  173.      IDM_EDITPASTE,             IDS_ITEMMESSAGEEDITPASTE,
  174.      IDM_EDITPASTESPECIAL,      IDS_ITEMMESSAGEEDITPASTESPECIAL,
  175.      IDM_EDITDELETEOBJECT,      IDS_ITEMMESSAGEEDITDELETEOBJECT,
  176.      //CHAPTER17MOD
  177.      IDM_EDITINSERTOBJECT,      IDS_ITEMMESSAGEEDITINSERTOBJECT,
  178.      IDM_EDITOBJECT,            IDS_ITEMMESSAGEEDITOBJECT,
  179.      IDM_EDITCONVERT,           IDS_ITEMMESSAGEEDITCONVERT,
  180.      //End CHAPTER17MOD
  181.      ID_MENUPAGE,               IDS_MENUMESSAGEPAGE,
  182.      IDM_PAGENEWPAGE,           IDS_ITEMMESSAGEPAGENEWPAGE,
  183.      IDM_PAGEDELETEPAGE,        IDS_ITEMMESSAGEPAGEDELETEPAGE,
  184.      IDM_PAGENEXTPAGE,          IDS_ITEMMESSAGEPAGENEXTPAGE,
  185.      IDM_PAGEPREVIOUSPAGE,      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,
  186.      IDM_PAGEFIRSTPAGE,         IDS_ITEMMESSAGEPAGEFIRSTPAGE,
  187.      IDM_PAGELASTPAGE,          IDS_ITEMMESSAGEPAGELASTPAGE,
  188.      ID_MENUWINDOW,             IDS_MENUMESSAGEWINDOW,
  189.      IDM_WINDOWCASCADE,         IDS_ITEMMESSAGEWINDOWCASCADE,
  190.      IDM_WINDOWTILEHORZ,        IDS_ITEMMESSAGEWINDOWTILEHORZ,
  191.      IDM_WINDOWTILEVERT,        IDS_ITEMMESSAGEWINDOWTILEVERT,
  192.      IDM_WINDOWICONS,           IDS_ITEMMESSAGEWINDOWICONS,
  193.      ID_MENUHELP,               IDS_MENUMESSAGEHELP,
  194.      IDM_HELPABOUT,             IDS_ITEMMESSAGEHELPABOUT,
  195.     END
  196. STRINGTABLE
  197.     BEGIN
  198.      IDS_EMPTYMESSAGE,                  ""
  199.      IDS_READYMESSAGE,                  "Ready"
  200.      IDS_MENUMESSAGESYSTEM,             "Commands for working with this window"
  201.      IDS_SYSMESSAGESIZE,                "Change the size of this window"
  202.      IDS_SYSMESSAGEMOVE,                "Move the window to another position"
  203.      IDS_SYSMESSAGEMINIMIZE,            "Reduce this window to an icon"
  204.      IDS_SYSMESSAGEMAXIMIZE,            "Enlarge this window to its maximum size"
  205.      IDS_SYSMESSAGENEXTWINDOW,          "Switch to the next window"
  206.      IDS_SYSMESSAGEPREVWINDOW,          "Switch to the previous window"
  207.      IDS_SYSMESSAGECLOSE,               "Close this window"
  208.      IDS_SYSMESSAGERESTORE,             "Restore this window to its previous size"
  209.      IDS_SYSMESSAGETASKLIST,            "Open the Task List"
  210.      IDS_MENUMESSAGEFILE,               "Commands for working with files"
  211.      IDS_ITEMMESSAGEFILENEW,            "Create a new, blank document"
  212.      IDS_ITEMMESSAGEFILEOPEN,           "Open an existing document"
  213.      IDS_ITEMMESSAGEFILECLOSE,          "Close the currently active document"
  214.      IDS_ITEMMESSAGEFILESAVE,           "Save the currently active document"
  215.      IDS_ITEMMESSAGEFILESAVEAS,         "Save the currently active document under a new name"
  216.      IDS_ITEMMESSAGEFILEPRINT,          "Print the currently active document"
  217.      IDS_ITEMMESSAGEFILEPRINTERSETUP,   "Select the printer for the currently active document"
  218.      IDS_ITEMMESSAGEFILEEXIT,           "Close the application"
  219.      IDS_MENUMESSAGEEDIT,               "Commands for manipulating data"
  220.      IDS_ITEMMESSAGEEDITUNDO,           "."
  221.      IDS_ITEMMESSAGEEDITCUT,            "Move data to the clipboard"
  222.      IDS_ITEMMESSAGEEDITCOPY,           "Copy data to the clipboard"
  223.      IDS_ITEMMESSAGEEDITPASTE,          "Paste data from the clipboard into the active document"
  224.      IDS_ITEMMESSAGEEDITPASTESPECIAL,   "Paste a selected data format from the clipboard into the active document"
  225.      IDS_ITEMMESSAGEEDITDELETEOBJECT,   "Remove the currently selected object from the page"
  226.      //CHAPTER17MOD
  227.      IDS_ITEMMESSAGEEDITINSERTOBJECT,   "Create a new object of a specified type in the page"
  228.      IDS_ITEMMESSAGEEDITOBJECT,         "Commands to manipulate the selected object"
  229.      IDS_ITEMMESSAGEEDITCONVERT,        "Changes the type of this object either permanently or temporarily"
  230.      //End CHAPTER17MOD
  231.      IDS_MENUMESSAGEPAGE,               "Commands for working with document pages"
  232.      IDS_ITEMMESSAGEPAGENEWPAGE,        "Insert a new page after the current page"
  233.      IDS_ITEMMESSAGEPAGEDELETEPAGE,     "Delete the current page"
  234.      IDS_ITEMMESSAGEPAGENEXTPAGE,       "Show the page after the current page"
  235.      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,   "Show the page before the current page"
  236.      IDS_ITEMMESSAGEPAGEFIRSTPAGE,      "Show the first page"
  237.      IDS_ITEMMESSAGEPAGELASTPAGE,       "Show the last page"
  238.      IDS_MENUMESSAGEWINDOW,             "Commands for working with document windows"
  239.      IDS_ITEMMESSAGEWINDOWCASCADE,      "Arrange documents in cascading style"
  240.      IDS_ITEMMESSAGEWINDOWTILEHORZ,     "Tile documents favoring width"
  241.      IDS_ITEMMESSAGEWINDOWTILEVERT,     "Tile documents favoring height"
  242.      IDS_ITEMMESSAGEWINDOWICONS,        "Arrange document icons"
  243.      IDS_MENUMESSAGEHELP,               "Commands for accessing Help"
  244.      IDS_ITEMMESSAGEHELPABOUT,          "View author information"
  245.     END
  246. rcinclude about.dlg
  247. rcinclude print.dlg