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

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * PATRON.RC
  3.  * Patron Chapter 20
  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.        MENUITEM SEPARATOR
  48.        MENUITEM "&Insert Object...",        IDM_EDITINSERTOBJECT
  49.        MENUITEM "&Object",                  IDM_EDITOBJECT GRAYED
  50.        //CHAPTER20MOD
  51.        MENUITEM SEPARATOR
  52.        MENUITEM "&Links...",                IDM_EDITLINKS GRAYED
  53.        //End CHAPTER20MOD
  54.       END
  55.      POPUP "&Page"
  56.       BEGIN
  57.        MENUITEM "&New PagetCtrl+N",        IDM_PAGENEWPAGE
  58.        MENUITEM "&Delete PagetCtrl+D",     IDM_PAGEDELETEPAGE
  59.        MENUITEM SEPARATOR
  60.        MENUITEM "Nex&t PagetPage Down",    IDM_PAGENEXTPAGE
  61.        MENUITEM "&Previous PagetPage Up",  IDM_PAGEPREVIOUSPAGE
  62.        MENUITEM SEPARATOR
  63.        MENUITEM "&First PagetCtrl+Home",   IDM_PAGEFIRSTPAGE
  64.        MENUITEM "&Last PagetCtrl+End",     IDM_PAGELASTPAGE
  65.        //CHAPTER20MOD
  66.        MENUITEM SEPARATOR
  67.        MENUITEM "Sho&w Objects",            IDM_PAGESHOWOBJECTS
  68.        //End CHAPTER20MOD
  69.       END
  70.     #ifdef MDI
  71.      POPUP   "&Window"
  72.       BEGIN
  73.        MENUITEM "&Cascade",                 IDM_WINDOWCASCADE
  74.        MENUITEM "Tile &Horizontally",       IDM_WINDOWTILEHORZ
  75.        MENUITEM "&Tile Vertically",         IDM_WINDOWTILEVERT
  76.        MENUITEM "Arrange &Icons",           IDM_WINDOWICONS
  77.       END
  78.     #endif
  79.      POPUP "&Help"
  80.       BEGIN
  81.        MENUITEM "&About Patron...",         IDM_HELPABOUT
  82.       END
  83.     END
  84. IDR_RIGHTPOPUPMENU MENU MOVEABLE DISCARDABLE
  85.     BEGIN
  86.      MENUITEM "Cut",             IDM_EDITCUT
  87.      MENUITEM "Copy",            IDM_EDITCOPY
  88.      MENUITEM SEPARATOR
  89.      MENUITEM "Delete Object",   IDM_EDITDELETEOBJECT
  90.      MENUITEM SEPARATOR
  91.      MENUITEM "Object",          IDM_EDITOBJECT GRAYED
  92.      //CHAPTER20MOD
  93.      MENUITEM SEPARATOR
  94.      MENUITEM "Links...",        IDM_EDITLINKS GRAYED
  95.      //End CHAPTER20MOD
  96.     END
  97. //Stringtable for Frame windows
  98. STRINGTABLE
  99.     BEGIN
  100.      IDS_CAPTION,            "Patron Chapter 20"
  101.      IDS_UNTITLED,           "(Untitled)"
  102.      IDS_FILEDIRTY,          "%s has been modified.nDo you wish to save it?"
  103.      IDS_DEFEXT,             "PTN"
  104.      IDS_DOTEXT,             ".PTN"
  105.      IDS_FILEOPENFILTER,     "Patron Pages (*.ptn)|*.ptn|"
  106.      IDS_FILESAVEFILTER,     "Patron (*.ptn)|*.ptn|"
  107.      IDS_FILEOPEN,           "File Open"
  108.      IDS_FILESAVEAS,         "File Save As"
  109.     END
  110. //Stringtable for document windows.
  111. STRINGTABLE
  112.     BEGIN
  113.      IDS_CLIPBOARDFORMAT,    "Patron Objects"
  114.      IDS_DOCUMENTCAPTION,    "Document Error"
  115.      IDS_VERSIONMISMATCH,    "File data is not valid."
  116.      IDS_FILELOADERROR,      "Could not read the requested document."
  117.      IDS_FILESAVEERROR,      "Could not write to the specified document."
  118.      IDS_FILEDOESNOTEXIST,   "Document does not exist on the file system."
  119.      IDS_FILEOPENERROR,      "Could not open the requested document."
  120.      IDS_UNKNOWNERROR,       "Action failed due to an unknown error."
  121.      IDS_PRINTERROR,         "Printing was aborted due to user action or error."
  122.      IDS_DOCUMENTNAME,       "Patron Objects"
  123.      IDS_PASTEASPATRON,      "Patron Objects"
  124.      IDS_PASTEMETAFILE,      "Metafile"
  125.      IDS_PASTEASMETAFILE,    "a Metafile"
  126.      IDS_PASTEDIB,           "Device-Independent Bitmap"
  127.      IDS_PASTEASDIB,         "a Device-Independent Bitmap"
  128.      IDS_PASTEBITMAP,        "Bitmap"
  129.      IDS_PASTEASBITMAP,      "a Bitmap"
  130.      IDS_PASTEOBJECT,        "%s Object"
  131.      IDS_PASTEASOBJECT,      "%s Object"
  132.      //CHAPTER20MOD
  133.      IDS_PASTELINK,          "%s"
  134.      IDS_PASTEASLINK,        "%s"
  135.      //End CHAPTER20MOD
  136.     END
  137. IDR_ACCELERATORS ACCELERATORS
  138.    BEGIN
  139.     VK_DELETE,    IDM_EDITCUT, SHIFT, VIRTKEY
  140.     VK_INSERT,    IDM_EDITCOPY, CONTROL, VIRTKEY
  141.     VK_INSERT,    IDM_EDITPASTE, SHIFT, VIRTKEY
  142.     "^X",         IDM_EDITCUT
  143.     "^C",         IDM_EDITCOPY
  144.     "^V",         IDM_EDITPASTE
  145.     "^N",         IDM_PAGENEWPAGE
  146.     "^n",         IDM_PAGENEWPAGE
  147.     "^D",         IDM_PAGEDELETEPAGE
  148.     "^d",         IDM_PAGEDELETEPAGE
  149.     VK_NEXT,      IDM_PAGENEXTPAGE, VIRTKEY
  150.     VK_PRIOR,     IDM_PAGEPREVIOUSPAGE, VIRTKEY
  151.     VK_HOME,      IDM_PAGEFIRSTPAGE, CONTROL, VIRTKEY
  152.     VK_END,       IDM_PAGELASTPAGE, CONTROL, VIRTKEY
  153.     VK_DELETE,    IDM_EDITDELETEOBJECT, VIRTKEY
  154.    END
  155. //Tables and such for StatStrip
  156. IDR_STATMESSAGEMAP RCDATA
  157.     BEGIN
  158.      ID_MESSAGEEMPTY,           IDS_EMPTYMESSAGE,
  159.      ID_MESSAGEREADY,           IDS_READYMESSAGE
  160.      ID_MENUSYS,                IDS_MENUMESSAGESYSTEM,
  161.      SC_SIZE,                   IDS_SYSMESSAGESIZE,
  162.      SC_MOVE,                   IDS_SYSMESSAGEMOVE,
  163.      SC_MINIMIZE,               IDS_SYSMESSAGEMINIMIZE,
  164.      SC_MAXIMIZE,               IDS_SYSMESSAGEMAXIMIZE,
  165.      SC_NEXTWINDOW,             IDS_SYSMESSAGENEXTWINDOW,
  166.      SC_PREVWINDOW,             IDS_SYSMESSAGEPREVWINDOW,
  167.      SC_CLOSE,                  IDS_SYSMESSAGECLOSE,
  168.      SC_RESTORE,                IDS_SYSMESSAGERESTORE,
  169.      SC_TASKLIST,               IDS_SYSMESSAGETASKLIST,
  170.      ID_MENUFILE,               IDS_MENUMESSAGEFILE,
  171.      IDM_FILENEW,               IDS_ITEMMESSAGEFILENEW,
  172.      IDM_FILEOPEN,              IDS_ITEMMESSAGEFILEOPEN,
  173.      IDM_FILECLOSE,             IDS_ITEMMESSAGEFILECLOSE,
  174.      IDM_FILESAVE,              IDS_ITEMMESSAGEFILESAVE,
  175.      IDM_FILESAVEAS,            IDS_ITEMMESSAGEFILESAVEAS,
  176.      IDM_FILEPRINT,             IDS_ITEMMESSAGEFILEPRINT,
  177.      IDM_FILEPRINTERSETUP,      IDS_ITEMMESSAGEFILEPRINTERSETUP,
  178.      IDM_FILEEXIT,              IDS_ITEMMESSAGEFILEEXIT,
  179.      ID_MENUEDIT,               IDS_MENUMESSAGEEDIT,
  180.      IDM_EDITUNDO,              IDS_ITEMMESSAGEEDITUNDO,
  181.      IDM_EDITCUT,               IDS_ITEMMESSAGEEDITCUT,
  182.      IDM_EDITCOPY,              IDS_ITEMMESSAGEEDITCOPY,
  183.      IDM_EDITPASTE,             IDS_ITEMMESSAGEEDITPASTE,
  184.      IDM_EDITPASTESPECIAL,      IDS_ITEMMESSAGEEDITPASTESPECIAL,
  185.      IDM_EDITDELETEOBJECT,      IDS_ITEMMESSAGEEDITDELETEOBJECT,
  186.      IDM_EDITINSERTOBJECT,      IDS_ITEMMESSAGEEDITINSERTOBJECT,
  187.      IDM_EDITOBJECT,            IDS_ITEMMESSAGEEDITOBJECT,
  188.      IDM_EDITCONVERT,           IDS_ITEMMESSAGEEDITCONVERT,
  189.      //CHAPTER20MOD
  190.      IDM_EDITLINKS,             IDS_ITEMMESSAGEEDITLINKS,
  191.      //End CHAPTER20MOD
  192.      ID_MENUPAGE,               IDS_MENUMESSAGEPAGE,
  193.      IDM_PAGENEWPAGE,           IDS_ITEMMESSAGEPAGENEWPAGE,
  194.      IDM_PAGEDELETEPAGE,        IDS_ITEMMESSAGEPAGEDELETEPAGE,
  195.      IDM_PAGENEXTPAGE,          IDS_ITEMMESSAGEPAGENEXTPAGE,
  196.      IDM_PAGEPREVIOUSPAGE,      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,
  197.      IDM_PAGEFIRSTPAGE,         IDS_ITEMMESSAGEPAGEFIRSTPAGE,
  198.      IDM_PAGELASTPAGE,          IDS_ITEMMESSAGEPAGELASTPAGE,
  199.      //CHAPTER20MOD
  200.      IDM_PAGESHOWOBJECTS,       IDS_ITEMMESSAGEPAGESHOWOBJECTS,
  201.      //End CHAPTER20MOD
  202.      ID_MENUWINDOW,             IDS_MENUMESSAGEWINDOW,
  203.      IDM_WINDOWCASCADE,         IDS_ITEMMESSAGEWINDOWCASCADE,
  204.      IDM_WINDOWTILEHORZ,        IDS_ITEMMESSAGEWINDOWTILEHORZ,
  205.      IDM_WINDOWTILEVERT,        IDS_ITEMMESSAGEWINDOWTILEVERT,
  206.      IDM_WINDOWICONS,           IDS_ITEMMESSAGEWINDOWICONS,
  207.      ID_MENUHELP,               IDS_MENUMESSAGEHELP,
  208.      IDM_HELPABOUT,             IDS_ITEMMESSAGEHELPABOUT,
  209.     END
  210. STRINGTABLE
  211.     BEGIN
  212.      IDS_EMPTYMESSAGE,                  ""
  213.      IDS_READYMESSAGE,                  "Ready"
  214.      IDS_MENUMESSAGESYSTEM,             "Commands for working with this window"
  215.      IDS_SYSMESSAGESIZE,                "Change the size of this window"
  216.      IDS_SYSMESSAGEMOVE,                "Move the window to another position"
  217.      IDS_SYSMESSAGEMINIMIZE,            "Reduce this window to an icon"
  218.      IDS_SYSMESSAGEMAXIMIZE,            "Enlarge this window to its maximum size"
  219.      IDS_SYSMESSAGENEXTWINDOW,          "Switch to the next window"
  220.      IDS_SYSMESSAGEPREVWINDOW,          "Switch to the previous window"
  221.      IDS_SYSMESSAGECLOSE,               "Close this window"
  222.      IDS_SYSMESSAGERESTORE,             "Restore this window to its previous size"
  223.      IDS_SYSMESSAGETASKLIST,            "Open the Task List"
  224.      IDS_MENUMESSAGEFILE,               "Commands for working with files"
  225.      IDS_ITEMMESSAGEFILENEW,            "Create a new, blank document"
  226.      IDS_ITEMMESSAGEFILEOPEN,           "Open an existing document"
  227.      IDS_ITEMMESSAGEFILECLOSE,          "Close the currently active document"
  228.      IDS_ITEMMESSAGEFILESAVE,           "Save the currently active document"
  229.      IDS_ITEMMESSAGEFILESAVEAS,         "Save the currently active document under a new name"
  230.      IDS_ITEMMESSAGEFILEPRINT,          "Print the currently active document"
  231.      IDS_ITEMMESSAGEFILEPRINTERSETUP,   "Select the printer for the currently active document"
  232.      IDS_ITEMMESSAGEFILEEXIT,           "Close the application"
  233.      IDS_MENUMESSAGEEDIT,               "Commands for manipulating data"
  234.      IDS_ITEMMESSAGEEDITUNDO,           "."
  235.      IDS_ITEMMESSAGEEDITCUT,            "Move data to the clipboard"
  236.      IDS_ITEMMESSAGEEDITCOPY,           "Copy data to the clipboard"
  237.      IDS_ITEMMESSAGEEDITPASTE,          "Paste data from the clipboard into the active document"
  238.      IDS_ITEMMESSAGEEDITPASTESPECIAL,   "Paste a selected data format from the clipboard into the active document"
  239.      IDS_ITEMMESSAGEEDITDELETEOBJECT,   "Remove the currently selected object from the page"
  240.      IDS_ITEMMESSAGEEDITINSERTOBJECT,   "Create a new object of a specified type in the page"
  241.      IDS_ITEMMESSAGEEDITOBJECT,         "Commands to manipulate the selected object"
  242.      IDS_ITEMMESSAGEEDITCONVERT,        "Changes the type of this object either permanently or temporarily"
  243.      //CHAPTER20MOD
  244.      IDS_ITEMMESSAGEEDITLINKS,          "Manipulates linked objects on this page (and this page only)"
  245.      //End CHAPTER20MOD
  246.      IDS_MENUMESSAGEPAGE,               "Commands for working with document pages"
  247.      IDS_ITEMMESSAGEPAGENEWPAGE,        "Insert a new page after the current page"
  248.      IDS_ITEMMESSAGEPAGEDELETEPAGE,     "Delete the current page"
  249.      IDS_ITEMMESSAGEPAGENEXTPAGE,       "Show the page after the current page"
  250.      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,   "Show the page before the current page"
  251.      IDS_ITEMMESSAGEPAGEFIRSTPAGE,      "Show the first page"
  252.      IDS_ITEMMESSAGEPAGELASTPAGE,       "Show the last page"
  253.      //CHAPTER20MOD
  254.      IDS_ITEMMESSAGEPAGESHOWOBJECTS,    "Frames linked and embedded objects for identification"
  255.      //End CHAPTER20MOD
  256.      IDS_MENUMESSAGEWINDOW,             "Commands for working with document windows"
  257.      IDS_ITEMMESSAGEWINDOWCASCADE,      "Arrange documents in cascading style"
  258.      IDS_ITEMMESSAGEWINDOWTILEHORZ,     "Tile documents favoring width"
  259.      IDS_ITEMMESSAGEWINDOWTILEVERT,     "Tile documents favoring height"
  260.      IDS_ITEMMESSAGEWINDOWICONS,        "Arrange document icons"
  261.      IDS_MENUMESSAGEHELP,               "Commands for accessing Help"
  262.      IDS_ITEMMESSAGEHELPABOUT,          "View author information"
  263.     END
  264. rcinclude about.dlg
  265. rcinclude print.dlg