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

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * PATRON.RC
  3.  * Patron Chapter 1
  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.       END
  45.      POPUP "&Page"
  46.       BEGIN
  47.        MENUITEM "&New PagetCtrl+N",        IDM_PAGENEWPAGE
  48.        MENUITEM "&Delete PagetCtrl+D",     IDM_PAGEDELETEPAGE
  49.        MENUITEM SEPARATOR
  50.        MENUITEM "Nex&t PagetPage Down",    IDM_PAGENEXTPAGE
  51.        MENUITEM "&Previous PagetPage Up",  IDM_PAGEPREVIOUSPAGE
  52.        MENUITEM SEPARATOR
  53.        MENUITEM "&First PagetCtrl+Home",   IDM_PAGEFIRSTPAGE
  54.        MENUITEM "&Last PagetCtrl+End",     IDM_PAGELASTPAGE
  55.       END
  56.     #ifdef MDI
  57.      POPUP   "&Window"
  58.       BEGIN
  59.        MENUITEM "&Cascade",                 IDM_WINDOWCASCADE
  60.        MENUITEM "Tile &Horizontally",       IDM_WINDOWTILEHORZ
  61.        MENUITEM "&Tile Vertically",         IDM_WINDOWTILEVERT
  62.        MENUITEM "Arrange &Icons",           IDM_WINDOWICONS
  63.       END
  64.     #endif
  65.      POPUP "&Help"
  66.       BEGIN
  67.        MENUITEM "&About Patron...",         IDM_HELPABOUT
  68.       END
  69.     END
  70. //Stringtable for Frame windows
  71. STRINGTABLE
  72.     BEGIN
  73.      IDS_CAPTION,            "Patron Chapter 1"
  74.      IDS_UNTITLED,           "(Untitled)"
  75.      IDS_FILEDIRTY,          "%s has been modified.nDo you wish to save it?"
  76.      IDS_DEFEXT,             "PTN"
  77.      IDS_DOTEXT,             ".PTN"
  78.      IDS_FILEOPENFILTER,     "Patron Pages (*.ptn)|*.ptn|"
  79.      IDS_FILESAVEFILTER,     "Patron (*.ptn)|*.ptn|"
  80.      IDS_FILEOPEN,           "File Open"
  81.      IDS_FILESAVEAS,         "File Save As"
  82.     END
  83. //Stringtable for document windows.
  84. STRINGTABLE
  85.     BEGIN
  86.      IDS_CLIPBOARDFORMAT,    "Patron Objects"
  87.      IDS_DOCUMENTCAPTION,    "Document Error"
  88.      IDS_VERSIONMISMATCH,    "File data is not valid."
  89.      IDS_FILELOADERROR,      "Could not read the requested document."
  90.      IDS_FILESAVEERROR,      "Could not write to the specified document."
  91.      IDS_FILEDOESNOTEXIST,   "Document does not exist on the file system."
  92.      IDS_FILEOPENERROR,      "Could not open the requested document."
  93.      IDS_UNKNOWNERROR,       "Action failed due to an unknown error."
  94.      IDS_PRINTERROR,         "Printing was aborted due to user action or error."
  95.      IDS_DOCUMENTNAME,       "Patron Objects"
  96.     END
  97. IDR_ACCELERATORS ACCELERATORS
  98.    BEGIN
  99.     VK_DELETE,    IDM_EDITCUT, SHIFT, VIRTKEY
  100.     VK_INSERT,    IDM_EDITCOPY, CONTROL, VIRTKEY
  101.     VK_INSERT,    IDM_EDITPASTE, SHIFT, VIRTKEY
  102.     "^X",         IDM_EDITCUT
  103.     "^C",         IDM_EDITCOPY
  104.     "^V",         IDM_EDITPASTE
  105.     "^N",         IDM_PAGENEWPAGE
  106.     "^n",         IDM_PAGENEWPAGE
  107.     "^D",         IDM_PAGEDELETEPAGE
  108.     "^d",         IDM_PAGEDELETEPAGE
  109.     VK_NEXT,      IDM_PAGENEXTPAGE, VIRTKEY
  110.     VK_PRIOR,     IDM_PAGEPREVIOUSPAGE, VIRTKEY
  111.     VK_HOME,      IDM_PAGEFIRSTPAGE, CONTROL, VIRTKEY
  112.     VK_END,       IDM_PAGELASTPAGE, CONTROL, VIRTKEY
  113.    END
  114. //Tables and such for StatStrip
  115. IDR_STATMESSAGEMAP RCDATA
  116.     BEGIN
  117.      ID_MESSAGEEMPTY,           IDS_EMPTYMESSAGE,
  118.      ID_MESSAGEREADY,           IDS_READYMESSAGE
  119.      ID_MENUSYS,                IDS_MENUMESSAGESYSTEM,
  120.      SC_SIZE,                   IDS_SYSMESSAGESIZE,
  121.      SC_MOVE,                   IDS_SYSMESSAGEMOVE,
  122.      SC_MINIMIZE,               IDS_SYSMESSAGEMINIMIZE,
  123.      SC_MAXIMIZE,               IDS_SYSMESSAGEMAXIMIZE,
  124.      SC_NEXTWINDOW,             IDS_SYSMESSAGENEXTWINDOW,
  125.      SC_PREVWINDOW,             IDS_SYSMESSAGEPREVWINDOW,
  126.      SC_CLOSE,                  IDS_SYSMESSAGECLOSE,
  127.      SC_RESTORE,                IDS_SYSMESSAGERESTORE,
  128.      SC_TASKLIST,               IDS_SYSMESSAGETASKLIST,
  129.      ID_MENUFILE,               IDS_MENUMESSAGEFILE,
  130.      IDM_FILENEW,               IDS_ITEMMESSAGEFILENEW,
  131.      IDM_FILEOPEN,              IDS_ITEMMESSAGEFILEOPEN,
  132.      IDM_FILECLOSE,             IDS_ITEMMESSAGEFILECLOSE,
  133.      IDM_FILESAVE,              IDS_ITEMMESSAGEFILESAVE,
  134.      IDM_FILESAVEAS,            IDS_ITEMMESSAGEFILESAVEAS,
  135.      IDM_FILEPRINT,             IDS_ITEMMESSAGEFILEPRINT,
  136.      IDM_FILEPRINTERSETUP,      IDS_ITEMMESSAGEFILEPRINTERSETUP,
  137.      IDM_FILEEXIT,              IDS_ITEMMESSAGEFILEEXIT,
  138.      ID_MENUEDIT,               IDS_MENUMESSAGEEDIT,
  139.      IDM_EDITUNDO,              IDS_ITEMMESSAGEEDITUNDO,
  140.      IDM_EDITCUT,               IDS_ITEMMESSAGEEDITCUT,
  141.      IDM_EDITCOPY,              IDS_ITEMMESSAGEEDITCOPY,
  142.      IDM_EDITPASTE,             IDS_ITEMMESSAGEEDITPASTE,
  143.      ID_MENUPAGE,               IDS_MENUMESSAGEPAGE,
  144.      IDM_PAGENEWPAGE,           IDS_ITEMMESSAGEPAGENEWPAGE,
  145.      IDM_PAGEDELETEPAGE,        IDS_ITEMMESSAGEPAGEDELETEPAGE,
  146.      IDM_PAGENEXTPAGE,          IDS_ITEMMESSAGEPAGENEXTPAGE,
  147.      IDM_PAGEPREVIOUSPAGE,      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,
  148.      IDM_PAGEFIRSTPAGE,         IDS_ITEMMESSAGEPAGEFIRSTPAGE,
  149.      IDM_PAGELASTPAGE,          IDS_ITEMMESSAGEPAGELASTPAGE,
  150.      ID_MENUWINDOW,             IDS_MENUMESSAGEWINDOW,
  151.      IDM_WINDOWCASCADE,         IDS_ITEMMESSAGEWINDOWCASCADE,
  152.      IDM_WINDOWTILEHORZ,        IDS_ITEMMESSAGEWINDOWTILEHORZ,
  153.      IDM_WINDOWTILEVERT,        IDS_ITEMMESSAGEWINDOWTILEVERT,
  154.      IDM_WINDOWICONS,           IDS_ITEMMESSAGEWINDOWICONS,
  155.      ID_MENUHELP,               IDS_MENUMESSAGEHELP,
  156.      IDM_HELPABOUT,             IDS_ITEMMESSAGEHELPABOUT,
  157.     END
  158. STRINGTABLE
  159.     BEGIN
  160.      IDS_EMPTYMESSAGE,                  ""
  161.      IDS_READYMESSAGE,                  "Ready"
  162.      IDS_MENUMESSAGESYSTEM,             "Commands for working with this window"
  163.      IDS_SYSMESSAGESIZE,                "Change the size of this window"
  164.      IDS_SYSMESSAGEMOVE,                "Move the window to another position"
  165.      IDS_SYSMESSAGEMINIMIZE,            "Reduce this window to an icon"
  166.      IDS_SYSMESSAGEMAXIMIZE,            "Enlarge this window to its maximum size"
  167.      IDS_SYSMESSAGENEXTWINDOW,          "Switch to the next window"
  168.      IDS_SYSMESSAGEPREVWINDOW,          "Switch to the previous window"
  169.      IDS_SYSMESSAGECLOSE,               "Close this window"
  170.      IDS_SYSMESSAGERESTORE,             "Restore this window to its previous size"
  171.      IDS_SYSMESSAGETASKLIST,            "Open the Task List"
  172.      IDS_MENUMESSAGEFILE,               "Commands for working with files"
  173.      IDS_ITEMMESSAGEFILENEW,            "Create a new, blank document"
  174.      IDS_ITEMMESSAGEFILEOPEN,           "Open an existing document"
  175.      IDS_ITEMMESSAGEFILECLOSE,          "Close the currently active document"
  176.      IDS_ITEMMESSAGEFILESAVE,           "Save the currently active document"
  177.      IDS_ITEMMESSAGEFILESAVEAS,         "Save the currently active document under a new name"
  178.      IDS_ITEMMESSAGEFILEPRINT,          "Print the currently active document"
  179.      IDS_ITEMMESSAGEFILEPRINTERSETUP,   "Select the printer for the currently active document"
  180.      IDS_ITEMMESSAGEFILEEXIT,           "Close the application"
  181.      IDS_MENUMESSAGEEDIT,               "Commands for manipulating data"
  182.      IDS_ITEMMESSAGEEDITUNDO,           "."
  183.      IDS_ITEMMESSAGEEDITCUT,            "Move data to the clipboard"
  184.      IDS_ITEMMESSAGEEDITCOPY,           "Copy data to the clipboard"
  185.      IDS_ITEMMESSAGEEDITPASTE,          "Paste data from the clipboard into the active document"
  186.      IDS_MENUMESSAGEPAGE,               "Commands for working with document pages"
  187.      IDS_ITEMMESSAGEPAGENEWPAGE,        "Insert a new page after the current page"
  188.      IDS_ITEMMESSAGEPAGEDELETEPAGE,     "Delete the current page"
  189.      IDS_ITEMMESSAGEPAGENEXTPAGE,       "Show the page after the current page"
  190.      IDS_ITEMMESSAGEPAGEPREVIOUSPAGE,   "Show the page before the current page"
  191.      IDS_ITEMMESSAGEPAGEFIRSTPAGE,      "Show the first page"
  192.      IDS_ITEMMESSAGEPAGELASTPAGE,       "Show the last page"
  193.      IDS_MENUMESSAGEWINDOW,             "Commands for working with document windows"
  194.      IDS_ITEMMESSAGEWINDOWCASCADE,      "Arrange documents in cascading style"
  195.      IDS_ITEMMESSAGEWINDOWTILEHORZ,     "Tile documents favoring width"
  196.      IDS_ITEMMESSAGEWINDOWTILEVERT,     "Tile documents favoring height"
  197.      IDS_ITEMMESSAGEWINDOWICONS,        "Arrange document icons"
  198.      IDS_MENUMESSAGEHELP,               "Commands for accessing Help"
  199.      IDS_ITEMMESSAGEHELPABOUT,          "View author information"
  200.     END
  201. rcinclude about.dlg
  202. rcinclude print.dlg