home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / chap13 / patron / patron.rc < prev    next >
Text File  |  1995-05-03  |  11KB  |  257 lines

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