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

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * PATRON.RC
  3.  * Patron Chapter 22
  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.        MENUITEM SEPARATOR
  51.        MENUITEM "&Links...",                IDM_EDITLINKS GRAYED
  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.        MENUITEM SEPARATOR
  64.        MENUITEM "Sho&w Objects",            IDM_PAGESHOWOBJECTS
  65.       END
  66.     #ifdef MDI
  67.      POPUP   "&Window"
  68.       BEGIN
  69.        MENUITEM "&Cascade",                 IDM_WINDOWCASCADE
  70.        MENUITEM "Tile &Horizontally",       IDM_WINDOWTILEHORZ
  71.        MENUITEM "&Tile Vertically",         IDM_WINDOWTILEVERT
  72.        MENUITEM "Arrange &Icons",           IDM_WINDOWICONS
  73.       END
  74.     #endif
  75.      POPUP "&Help"
  76.       BEGIN
  77.        MENUITEM "&About Patron...",         IDM_HELPABOUT
  78.       END
  79.     END
  80. IDR_RIGHTPOPUPMENU MENU MOVEABLE DISCARDABLE
  81.     BEGIN
  82.      MENUITEM "Cut",             IDM_EDITCUT
  83.      MENUITEM "Copy",            IDM_EDITCOPY
  84.      MENUITEM SEPARATOR
  85.      MENUITEM "Delete Object",   IDM_EDITDELETEOBJECT
  86.      MENUITEM SEPARATOR
  87.      MENUITEM "Object",          IDM_EDITOBJECT GRAYED
  88.      MENUITEM SEPARATOR
  89.      MENUITEM "Links...",        IDM_EDITLINKS GRAYED
  90.     END
  91. //Stringtable for Frame windows
  92. STRINGTABLE
  93.     BEGIN
  94.      IDS_CAPTION,            "Patron Chapter 22"
  95.      IDS_UNTITLED,           "(Untitled)"
  96.      IDS_FILEDIRTY,          "%s has been modified.nDo you wish to save it?"
  97.      IDS_DEFEXT,             "PTN"
  98.      IDS_DOTEXT,             ".PTN"
  99.      IDS_FILEOPENFILTER,     "Patron Pages (*.ptn)|*.ptn|"
  100.      IDS_FILESAVEFILTER,     "Patron (*.ptn)|*.ptn|"
  101.      IDS_FILEOPEN,           "File Open"
  102.      IDS_FILESAVEAS,         "File Save As"
  103.      //CHAPTER22MOD
  104.      IDS_FILEMENU,           "&File"
  105.      IDS_PAGEMENU,           "&Page"
  106.      IDS_WINDOWMENU,         "&Window"
  107.      IDS_IPFRAMECAPTION,     "%s in %s"
  108.      //End CHAPTER22MOD
  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.      IDS_PASTELINK,          "%s"
  133.      IDS_PASTEASLINK,        "%s"
  134.      //CHAPTER22MOD
  135.      IDS_UNTITLEDDOC,        "(Untitled)"
  136.      IDS_IPDOCCAPTION,       "%s in %s"
  137.      //End CHAPTER22MOD
  138.     END
  139. IDR_ACCELERATORS ACCELERATORS
  140.    BEGIN
  141.     VK_DELETE,    IDM_EDITCUT, SHIFT, VIRTKEY
  142.     VK_INSERT,    IDM_EDITCOPY, CONTROL, VIRTKEY
  143.     VK_INSERT,    IDM_EDITPASTE, SHIFT, VIRTKEY
  144.     "^X",         IDM_EDITCUT
  145.     "^C",         IDM_EDITCOPY
  146.     "^V",         IDM_EDITPASTE
  147.     "^N",         IDM_PAGENEWPAGE
  148.     "^n",         IDM_PAGENEWPAGE
  149.     "^D",         IDM_PAGEDELETEPAGE
  150.     "^d",         IDM_PAGEDELETEPAGE
  151.     VK_NEXT,      IDM_PAGENEXTPAGE, VIRTKEY
  152.     VK_PRIOR,     IDM_PAGEPREVIOUSPAGE, VIRTKEY
  153.     VK_HOME,      IDM_PAGEFIRSTPAGE, CONTROL, VIRTKEY
  154.     VK_END,       IDM_PAGELASTPAGE, CONTROL, VIRTKEY
  155.     VK_DELETE,    IDM_EDITDELETEOBJECT, VIRTKEY
  156.    END
  157. //CHAPTER22MOD
  158. IDR_INPLACEACCELERATORS ACCELERATORS
  159.    BEGIN
  160.     "^N",         IDM_PAGENEWPAGE
  161.     "^n",         IDM_PAGENEWPAGE
  162.     "^D",         IDM_PAGEDELETEPAGE
  163.     "^d",         IDM_PAGEDELETEPAGE
  164.     VK_NEXT,      IDM_PAGENEXTPAGE, VIRTKEY
  165.     VK_PRIOR,     IDM_PAGEPREVIOUSPAGE, VIRTKEY
  166.     VK_HOME,      IDM_PAGEFIRSTPAGE, CONTROL, VIRTKEY
  167.     VK_END,       IDM_PAGELASTPAGE, CONTROL, VIRTKEY
  168.     //Accelerators for open the object and context-help
  169.     VK_RETURN,    IDM_OPENOBJECT, CONTROL, VIRTKEY
  170.     VK_F1,        IDM_ENTERCONTEXTHELP, SHIFT, VIRTKEY
  171.     VK_ESCAPE,    IDM_ESCAPECONTEXTHELP, VIRTKEY
  172.    END
  173. //End CHAPTER22MOD
  174. //Tables and such for StatStrip
  175. IDR_STATMESSAGEMAP RCDATA
  176.     BEGIN
  177.      ID_MESSAGEEMPTY,           IDS_EMPTYMESSAGE,
  178.      ID_MESSAGEREADY,           IDS_READYMESSAGE
  179.      ID_MENUSYS,                IDS_MENUMESSAGESYSTEM,
  180.      SC_SIZE,                   IDS_SYSMESSAGESIZE,
  181.      SC_MOVE,                   IDS_SYSMESSAGEMOVE,
  182.      SC_MINIMIZE,               IDS_SYSMESSAGEMINIMIZE,
  183.      SC_MAXIMIZE,               IDS_SYSMESSAGEMAXIMIZE,
  184.      SC_NEXTWINDOW,             IDS_SYSMESSAGENEXTWINDOW,
  185.      SC_PREVWINDOW,             IDS_SYSMESSAGEPREVWINDOW,
  186.      SC_CLOSE,                  IDS_SYSMESSAGECLOSE,
  187.      SC_RESTORE,                IDS_SYSMESSAGERESTORE,
  188.      SC_TASKLIST,               IDS_SYSMESSAGETASKLIST,
  189.      ID_MENUFILE,               IDS_MENUMESSAGEFILE,
  190.      IDM_FILENEW,               IDS_ITEMMESSAGEFILENEW,
  191.      IDM_FILEOPEN,              IDS_ITEMMESSAGEFILEOPEN,
  192.      IDM_FILECLOSE,             IDS_ITEMMESSAGEFILECLOSE,
  193.      IDM_FILESAVE,              IDS_ITEMMESSAGEFILESAVE,
  194.      IDM_FILESAVEAS,            IDS_ITEMMESSAGEFILESAVEAS,
  195.      IDM_FILEPRINT,             IDS_ITEMMESSAGEFILEPRINT,
  196.      IDM_FILEPRINTERSETUP,      IDS_ITEMMESSAGEFILEPRINTERSETUP,
  197.      IDM_FILEEXIT,              IDS_ITEMMESSAGEFILEEXIT,
  198.      ID_MENUEDIT,               IDS_MENUMESSAGEEDIT,
  199.      IDM_EDITUNDO,              IDS_ITEMMESSAGEEDITUNDO,
  200.      IDM_EDITCUT,               IDS_ITEMMESSAGEEDITCUT,
  201.      IDM_EDITCOPY,              IDS_ITEMMESSAGEEDITCOPY,
  202.      IDM_EDITPASTE,             IDS_ITEMMESSAGEEDITPASTE,
  203.      IDM_EDITPASTESPECIAL,      IDS_ITEMMESSAGEEDITPASTESPECIAL,
  204.      IDM_EDITDELETEOBJECT,      IDS_ITEMMESSAGEEDITDELETEOBJECT,
  205.      IDM_EDITINSERTOBJECT,      IDS_ITEMMESSAGEEDITINSERTOBJECT,
  206.      IDM_EDITOBJECT,            IDS_ITEMMESSAGEEDITOBJECT,
  207.      IDM_EDITCONVERT,           IDS_ITEMMESSAGEEDITCONVERT,
  208.      IDM_EDITLINKS,             IDS_ITEMMESSAGEEDITLINKS,
  209.      ID_MENUPAGE,               IDS_MENUMESSAGEPAGE,
  210.      IDM_PAGENEWPAGE,           IDS_ITEMMESSAGEPAGENEWPAGE,
  211.      IDM_PAGEDELETEPAGE,        IDS_ITEMMESSAGEPAGEDELETEPAGE,
  212.      IDM_PAGENEXTPAGE,          IDS_ITEMMESSAGEPAGENEXTPAGE,
  213.      IDM_PAGEPREVIOUSPAGE,      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,
  214.      IDM_PAGEFIRSTPAGE,         IDS_ITEMMESSAGEPAGEFIRSTPAGE,
  215.      IDM_PAGELASTPAGE,          IDS_ITEMMESSAGEPAGELASTPAGE,
  216.      IDM_PAGESHOWOBJECTS,       IDS_ITEMMESSAGEPAGESHOWOBJECTS,
  217.      ID_MENUWINDOW,             IDS_MENUMESSAGEWINDOW,
  218.      IDM_WINDOWCASCADE,         IDS_ITEMMESSAGEWINDOWCASCADE,
  219.      IDM_WINDOWTILEHORZ,        IDS_ITEMMESSAGEWINDOWTILEHORZ,
  220.      IDM_WINDOWTILEVERT,        IDS_ITEMMESSAGEWINDOWTILEVERT,
  221.      IDM_WINDOWICONS,           IDS_ITEMMESSAGEWINDOWICONS,
  222.      ID_MENUHELP,               IDS_MENUMESSAGEHELP,
  223.      IDM_HELPABOUT,             IDS_ITEMMESSAGEHELPABOUT,
  224.     END
  225. STRINGTABLE
  226.     BEGIN
  227.      IDS_EMPTYMESSAGE,                  ""
  228.      IDS_READYMESSAGE,                  "Ready"
  229.      IDS_MENUMESSAGESYSTEM,             "Commands for working with this window"
  230.      IDS_SYSMESSAGESIZE,                "Change the size of this window"
  231.      IDS_SYSMESSAGEMOVE,                "Move the window to another position"
  232.      IDS_SYSMESSAGEMINIMIZE,            "Reduce this window to an icon"
  233.      IDS_SYSMESSAGEMAXIMIZE,            "Enlarge this window to its maximum size"
  234.      IDS_SYSMESSAGENEXTWINDOW,          "Switch to the next window"
  235.      IDS_SYSMESSAGEPREVWINDOW,          "Switch to the previous window"
  236.      IDS_SYSMESSAGECLOSE,               "Close this window"
  237.      IDS_SYSMESSAGERESTORE,             "Restore this window to its previous size"
  238.      IDS_SYSMESSAGETASKLIST,            "Open the Task List"
  239.      IDS_MENUMESSAGEFILE,               "Commands for working with files"
  240.      IDS_ITEMMESSAGEFILENEW,            "Create a new, blank document"
  241.      IDS_ITEMMESSAGEFILEOPEN,           "Open an existing document"
  242.      IDS_ITEMMESSAGEFILECLOSE,          "Close the currently active document"
  243.      IDS_ITEMMESSAGEFILESAVE,           "Save the currently active document"
  244.      IDS_ITEMMESSAGEFILESAVEAS,         "Save the currently active document under a new name"
  245.      IDS_ITEMMESSAGEFILEPRINT,          "Print the currently active document"
  246.      IDS_ITEMMESSAGEFILEPRINTERSETUP,   "Select the printer for the currently active document"
  247.      IDS_ITEMMESSAGEFILEEXIT,           "Close the application"
  248.      IDS_MENUMESSAGEEDIT,               "Commands for manipulating data"
  249.      IDS_ITEMMESSAGEEDITUNDO,           "."
  250.      IDS_ITEMMESSAGEEDITCUT,            "Move data to the clipboard"
  251.      IDS_ITEMMESSAGEEDITCOPY,           "Copy data to the clipboard"
  252.      IDS_ITEMMESSAGEEDITPASTE,          "Paste data from the clipboard into the active document"
  253.      IDS_ITEMMESSAGEEDITPASTESPECIAL,   "Paste a selected data format from the clipboard into the active document"
  254.      IDS_ITEMMESSAGEEDITDELETEOBJECT,   "Remove the currently selected object from the page"
  255.      IDS_ITEMMESSAGEEDITINSERTOBJECT,   "Create a new object of a specified type in the page"
  256.      IDS_ITEMMESSAGEEDITOBJECT,         "Commands to manipulate the selected object"
  257.      IDS_ITEMMESSAGEEDITCONVERT,        "Changes the type of this object either permanently or temporarily"
  258.      IDS_ITEMMESSAGEEDITLINKS,          "Manipulates linked objects on this page (and this page only)"
  259.      IDS_MENUMESSAGEPAGE,               "Commands for working with document pages"
  260.      IDS_ITEMMESSAGEPAGENEWPAGE,        "Insert a new page after the current page"
  261.      IDS_ITEMMESSAGEPAGEDELETEPAGE,     "Delete the current page"
  262.      IDS_ITEMMESSAGEPAGENEXTPAGE,       "Show the page after the current page"
  263.      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,   "Show the page before the current page"
  264.      IDS_ITEMMESSAGEPAGEFIRSTPAGE,      "Show the first page"
  265.      IDS_ITEMMESSAGEPAGELASTPAGE,       "Show the last page"
  266.      IDS_ITEMMESSAGEPAGESHOWOBJECTS,    "Frames linked and embedded objects for identification"
  267.      IDS_MENUMESSAGEWINDOW,             "Commands for working with document windows"
  268.      IDS_ITEMMESSAGEWINDOWCASCADE,      "Arrange documents in cascading style"
  269.      IDS_ITEMMESSAGEWINDOWTILEHORZ,     "Tile documents favoring width"
  270.      IDS_ITEMMESSAGEWINDOWTILEVERT,     "Tile documents favoring height"
  271.      IDS_ITEMMESSAGEWINDOWICONS,        "Arrange document icons"
  272.      IDS_MENUMESSAGEHELP,               "Commands for accessing Help"
  273.      IDS_ITEMMESSAGEHELPABOUT,          "View author information"
  274.     END
  275. rcinclude about.dlg
  276. rcinclude print.dlg