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

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * PATRON.RC
  3.  * Patron Chapter 21
  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 21"
  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.     END
  104. //Stringtable for document windows.
  105. STRINGTABLE
  106.     BEGIN
  107.      IDS_CLIPBOARDFORMAT,    "Patron Objects"
  108.      IDS_DOCUMENTCAPTION,    "Document Error"
  109.      IDS_VERSIONMISMATCH,    "File data is not valid."
  110.      IDS_FILELOADERROR,      "Could not read the requested document."
  111.      IDS_FILESAVEERROR,      "Could not write to the specified document."
  112.      IDS_FILEDOESNOTEXIST,   "Document does not exist on the file system."
  113.      IDS_FILEOPENERROR,      "Could not open the requested document."
  114.      IDS_UNKNOWNERROR,       "Action failed due to an unknown error."
  115.      IDS_PRINTERROR,         "Printing was aborted due to user action or error."
  116.      IDS_DOCUMENTNAME,       "Patron Objects"
  117.      IDS_PASTEASPATRON,      "Patron Objects"
  118.      IDS_PASTEMETAFILE,      "Metafile"
  119.      IDS_PASTEASMETAFILE,    "a Metafile"
  120.      IDS_PASTEDIB,           "Device-Independent Bitmap"
  121.      IDS_PASTEASDIB,         "a Device-Independent Bitmap"
  122.      IDS_PASTEBITMAP,        "Bitmap"
  123.      IDS_PASTEASBITMAP,      "a Bitmap"
  124.      IDS_PASTEOBJECT,        "%s Object"
  125.      IDS_PASTEASOBJECT,      "%s Object"
  126.      IDS_PASTELINK,          "%s"
  127.      IDS_PASTEASLINK,        "%s"
  128.      //CHAPTER21MOD
  129.      IDS_EXTENSION,          "*.ptn"
  130.      //End CHAPTER21MOD
  131.     END
  132. IDR_ACCELERATORS ACCELERATORS
  133.    BEGIN
  134.     VK_DELETE,    IDM_EDITCUT, SHIFT, VIRTKEY
  135.     VK_INSERT,    IDM_EDITCOPY, CONTROL, VIRTKEY
  136.     VK_INSERT,    IDM_EDITPASTE, SHIFT, VIRTKEY
  137.     "^X",         IDM_EDITCUT
  138.     "^C",         IDM_EDITCOPY
  139.     "^V",         IDM_EDITPASTE
  140.     "^N",         IDM_PAGENEWPAGE
  141.     "^n",         IDM_PAGENEWPAGE
  142.     "^D",         IDM_PAGEDELETEPAGE
  143.     "^d",         IDM_PAGEDELETEPAGE
  144.     VK_NEXT,      IDM_PAGENEXTPAGE, VIRTKEY
  145.     VK_PRIOR,     IDM_PAGEPREVIOUSPAGE, VIRTKEY
  146.     VK_HOME,      IDM_PAGEFIRSTPAGE, CONTROL, VIRTKEY
  147.     VK_END,       IDM_PAGELASTPAGE, CONTROL, VIRTKEY
  148.     VK_DELETE,    IDM_EDITDELETEOBJECT, VIRTKEY
  149.    END
  150. //Tables and such for StatStrip
  151. IDR_STATMESSAGEMAP RCDATA
  152.     BEGIN
  153.      ID_MESSAGEEMPTY,           IDS_EMPTYMESSAGE,
  154.      ID_MESSAGEREADY,           IDS_READYMESSAGE
  155.      ID_MENUSYS,                IDS_MENUMESSAGESYSTEM,
  156.      SC_SIZE,                   IDS_SYSMESSAGESIZE,
  157.      SC_MOVE,                   IDS_SYSMESSAGEMOVE,
  158.      SC_MINIMIZE,               IDS_SYSMESSAGEMINIMIZE,
  159.      SC_MAXIMIZE,               IDS_SYSMESSAGEMAXIMIZE,
  160.      SC_NEXTWINDOW,             IDS_SYSMESSAGENEXTWINDOW,
  161.      SC_PREVWINDOW,             IDS_SYSMESSAGEPREVWINDOW,
  162.      SC_CLOSE,                  IDS_SYSMESSAGECLOSE,
  163.      SC_RESTORE,                IDS_SYSMESSAGERESTORE,
  164.      SC_TASKLIST,               IDS_SYSMESSAGETASKLIST,
  165.      ID_MENUFILE,               IDS_MENUMESSAGEFILE,
  166.      IDM_FILENEW,               IDS_ITEMMESSAGEFILENEW,
  167.      IDM_FILEOPEN,              IDS_ITEMMESSAGEFILEOPEN,
  168.      IDM_FILECLOSE,             IDS_ITEMMESSAGEFILECLOSE,
  169.      IDM_FILESAVE,              IDS_ITEMMESSAGEFILESAVE,
  170.      IDM_FILESAVEAS,            IDS_ITEMMESSAGEFILESAVEAS,
  171.      IDM_FILEPRINT,             IDS_ITEMMESSAGEFILEPRINT,
  172.      IDM_FILEPRINTERSETUP,      IDS_ITEMMESSAGEFILEPRINTERSETUP,
  173.      IDM_FILEEXIT,              IDS_ITEMMESSAGEFILEEXIT,
  174.      ID_MENUEDIT,               IDS_MENUMESSAGEEDIT,
  175.      IDM_EDITUNDO,              IDS_ITEMMESSAGEEDITUNDO,
  176.      IDM_EDITCUT,               IDS_ITEMMESSAGEEDITCUT,
  177.      IDM_EDITCOPY,              IDS_ITEMMESSAGEEDITCOPY,
  178.      IDM_EDITPASTE,             IDS_ITEMMESSAGEEDITPASTE,
  179.      IDM_EDITPASTESPECIAL,      IDS_ITEMMESSAGEEDITPASTESPECIAL,
  180.      IDM_EDITDELETEOBJECT,      IDS_ITEMMESSAGEEDITDELETEOBJECT,
  181.      IDM_EDITINSERTOBJECT,      IDS_ITEMMESSAGEEDITINSERTOBJECT,
  182.      IDM_EDITOBJECT,            IDS_ITEMMESSAGEEDITOBJECT,
  183.      IDM_EDITCONVERT,           IDS_ITEMMESSAGEEDITCONVERT,
  184.      IDM_EDITLINKS,             IDS_ITEMMESSAGEEDITLINKS,
  185.      ID_MENUPAGE,               IDS_MENUMESSAGEPAGE,
  186.      IDM_PAGENEWPAGE,           IDS_ITEMMESSAGEPAGENEWPAGE,
  187.      IDM_PAGEDELETEPAGE,        IDS_ITEMMESSAGEPAGEDELETEPAGE,
  188.      IDM_PAGENEXTPAGE,          IDS_ITEMMESSAGEPAGENEXTPAGE,
  189.      IDM_PAGEPREVIOUSPAGE,      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,
  190.      IDM_PAGEFIRSTPAGE,         IDS_ITEMMESSAGEPAGEFIRSTPAGE,
  191.      IDM_PAGELASTPAGE,          IDS_ITEMMESSAGEPAGELASTPAGE,
  192.      IDM_PAGESHOWOBJECTS,       IDS_ITEMMESSAGEPAGESHOWOBJECTS,
  193.      ID_MENUWINDOW,             IDS_MENUMESSAGEWINDOW,
  194.      IDM_WINDOWCASCADE,         IDS_ITEMMESSAGEWINDOWCASCADE,
  195.      IDM_WINDOWTILEHORZ,        IDS_ITEMMESSAGEWINDOWTILEHORZ,
  196.      IDM_WINDOWTILEVERT,        IDS_ITEMMESSAGEWINDOWTILEVERT,
  197.      IDM_WINDOWICONS,           IDS_ITEMMESSAGEWINDOWICONS,
  198.      ID_MENUHELP,               IDS_MENUMESSAGEHELP,
  199.      IDM_HELPABOUT,             IDS_ITEMMESSAGEHELPABOUT,
  200.     END
  201. STRINGTABLE
  202.     BEGIN
  203.      IDS_EMPTYMESSAGE,                  ""
  204.      IDS_READYMESSAGE,                  "Ready"
  205.      IDS_MENUMESSAGESYSTEM,             "Commands for working with this window"
  206.      IDS_SYSMESSAGESIZE,                "Change the size of this window"
  207.      IDS_SYSMESSAGEMOVE,                "Move the window to another position"
  208.      IDS_SYSMESSAGEMINIMIZE,            "Reduce this window to an icon"
  209.      IDS_SYSMESSAGEMAXIMIZE,            "Enlarge this window to its maximum size"
  210.      IDS_SYSMESSAGENEXTWINDOW,          "Switch to the next window"
  211.      IDS_SYSMESSAGEPREVWINDOW,          "Switch to the previous window"
  212.      IDS_SYSMESSAGECLOSE,               "Close this window"
  213.      IDS_SYSMESSAGERESTORE,             "Restore this window to its previous size"
  214.      IDS_SYSMESSAGETASKLIST,            "Open the Task List"
  215.      IDS_MENUMESSAGEFILE,               "Commands for working with files"
  216.      IDS_ITEMMESSAGEFILENEW,            "Create a new, blank document"
  217.      IDS_ITEMMESSAGEFILEOPEN,           "Open an existing document"
  218.      IDS_ITEMMESSAGEFILECLOSE,          "Close the currently active document"
  219.      IDS_ITEMMESSAGEFILESAVE,           "Save the currently active document"
  220.      IDS_ITEMMESSAGEFILESAVEAS,         "Save the currently active document under a new name"
  221.      IDS_ITEMMESSAGEFILEPRINT,          "Print the currently active document"
  222.      IDS_ITEMMESSAGEFILEPRINTERSETUP,   "Select the printer for the currently active document"
  223.      IDS_ITEMMESSAGEFILEEXIT,           "Close the application"
  224.      IDS_MENUMESSAGEEDIT,               "Commands for manipulating data"
  225.      IDS_ITEMMESSAGEEDITUNDO,           "."
  226.      IDS_ITEMMESSAGEEDITCUT,            "Move data to the clipboard"
  227.      IDS_ITEMMESSAGEEDITCOPY,           "Copy data to the clipboard"
  228.      IDS_ITEMMESSAGEEDITPASTE,          "Paste data from the clipboard into the active document"
  229.      IDS_ITEMMESSAGEEDITPASTESPECIAL,   "Paste a selected data format from the clipboard into the active document"
  230.      IDS_ITEMMESSAGEEDITDELETEOBJECT,   "Remove the currently selected object from the page"
  231.      IDS_ITEMMESSAGEEDITINSERTOBJECT,   "Create a new object of a specified type in the page"
  232.      IDS_ITEMMESSAGEEDITOBJECT,         "Commands to manipulate the selected object"
  233.      IDS_ITEMMESSAGEEDITCONVERT,        "Changes the type of this object either permanently or temporarily"
  234.      IDS_ITEMMESSAGEEDITLINKS,          "Manipulates linked objects on this page (and this page only)"
  235.      IDS_MENUMESSAGEPAGE,               "Commands for working with document pages"
  236.      IDS_ITEMMESSAGEPAGENEWPAGE,        "Insert a new page after the current page"
  237.      IDS_ITEMMESSAGEPAGEDELETEPAGE,     "Delete the current page"
  238.      IDS_ITEMMESSAGEPAGENEXTPAGE,       "Show the page after the current page"
  239.      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,   "Show the page before the current page"
  240.      IDS_ITEMMESSAGEPAGEFIRSTPAGE,      "Show the first page"
  241.      IDS_ITEMMESSAGEPAGELASTPAGE,       "Show the last page"
  242.      IDS_ITEMMESSAGEPAGESHOWOBJECTS,    "Frames linked and embedded objects for identification"
  243.      IDS_MENUMESSAGEWINDOW,             "Commands for working with document windows"
  244.      IDS_ITEMMESSAGEWINDOWCASCADE,      "Arrange documents in cascading style"
  245.      IDS_ITEMMESSAGEWINDOWTILEHORZ,     "Tile documents favoring width"
  246.      IDS_ITEMMESSAGEWINDOWTILEVERT,     "Tile documents favoring height"
  247.      IDS_ITEMMESSAGEWINDOWICONS,        "Arrange document icons"
  248.      IDS_MENUMESSAGEHELP,               "Commands for accessing Help"
  249.      IDS_ITEMMESSAGEHELPABOUT,          "View author information"
  250.     END
  251. rcinclude about.dlg
  252. rcinclude print.dlg