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

Windows编程

开发平台:

Visual C++

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