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 / chap08 / cocosmo / cocosmo.rc < prev    next >
Text File  |  1995-05-03  |  10KB  |  237 lines

  1. /*
  2.  * COCOSMO.RC
  3.  * Component Cosmo Chapter 8
  4.  *
  5.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  6.  *
  7.  * Kraig Brockschmidt, Microsoft
  8.  * Internet  :  kraigb@microsoft.com
  9.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  10.  */
  11.  
  12.  
  13. #include "cocosmo.h"
  14.  
  15.  
  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.  
  21. Icon                ICON   cocosmo.ico
  22.  
  23. #ifdef MDI
  24. IDR_DOCUMENTICON    ICON   document.ico
  25. #endif
  26.  
  27. IDR_MENU    MENU MOVEABLE DISCARDABLE
  28.     BEGIN
  29.      POPUP "&File"
  30.       BEGIN
  31.        MENUITEM "&New",                 IDM_FILENEW
  32.        MENUITEM "&Open...",             IDM_FILEOPEN
  33.        MENUITEM "&Close",               IDM_FILECLOSE
  34.        MENUITEM "&Save",                IDM_FILESAVE
  35.        MENUITEM "Save &As...",          IDM_FILESAVEAS
  36.        MENUITEM SEPARATOR
  37.        MENUITEM "&Import...",           IDM_FILEIMPORT
  38.        MENUITEM SEPARATOR
  39.        MENUITEM "E&xit",                IDM_FILEEXIT
  40.       END
  41.  
  42.      POPUP "&Edit"
  43.       BEGIN
  44.        MENUITEM "&Undo\tCtrl+Z",        IDM_EDITUNDO
  45.        MENUITEM SEPARATOR
  46.        MENUITEM "&Cut\tCtrl+X",         IDM_EDITCUT
  47.        MENUITEM "C&opy\tCtrl+C",        IDM_EDITCOPY
  48.        MENUITEM "&Paste\tCtrl+V",       IDM_EDITPASTE
  49.       END
  50.  
  51.      POPUP "&Color"
  52.       BEGIN
  53.        MENUITEM "&Background...",       IDM_COLORBACKGROUND
  54.        MENUITEM "&Line...",             IDM_COLORLINE
  55.       END
  56.  
  57.      //These will be converted to bitmap items.
  58.      POPUP "&Line"
  59.       BEGIN
  60.        MENUITEM "Solid",                IDM_LINESOLID, CHECKED
  61.        MENUITEM "Dash",                 IDM_LINEDASH
  62.        MENUITEM "Dot",                  IDM_LINEDOT
  63.        MENUITEM "DashDot",              IDM_LINEDASHDOT
  64.        MENUITEM "DashDotDot",           IDM_LINEDASHDOTDOT
  65.       END
  66.  
  67.     #ifdef MDI
  68.      POPUP   "&Window"
  69.       BEGIN
  70.        MENUITEM "&Cascade",             IDM_WINDOWCASCADE
  71.        MENUITEM "Tile &Horizontally",   IDM_WINDOWTILEHORZ
  72.        MENUITEM "&Tile Vertically",     IDM_WINDOWTILEVERT
  73.        MENUITEM "Arrange &Icons",       IDM_WINDOWICONS
  74.       END
  75.     #endif
  76.  
  77.      POPUP "&Help"
  78.       BEGIN
  79.        MENUITEM "&About Cosmo...",     IDM_HELPABOUT
  80.       END
  81.     END
  82.  
  83.  
  84.  
  85. //Stringtable for Frame windows
  86. STRINGTABLE
  87.     BEGIN
  88.      IDS_CAPTION,            "Component Cosmo Chapter 8"
  89.      IDS_UNTITLED,           "(Untitled)"
  90.      IDS_FILEDIRTY,          "%s has been modified.\nDo you wish to save it?"
  91.      IDS_DEFEXT,             "COS"
  92.      IDS_DOTEXT,             ".COS"
  93.      IDS_FILEOPENFILTER,     "Cosmo Polyline (*.cos)|*.cos|"
  94.      IDS_FILESAVEFILTER,     "Cosmo (*.cos)|*.cos|"
  95.      IDS_FILEOPEN,           "File Open"
  96.      IDS_FILESAVEAS,         "File Save As"
  97.      IDS_FILEIMPORT,         "File Import"
  98.     END
  99.  
  100. //Stringtable for document windows.
  101. STRINGTABLE
  102.     BEGIN
  103.      IDS_CLIPBOARDFORMAT,    "Polyline Figure"
  104.      IDS_DOCUMENTCAPTION,    "Cosmo Figure"
  105.      IDS_VERSIONMISMATCH,    "The data in the file is not valid."
  106.      IDS_FILELOADERROR,      "Could not read the requested file."
  107.      IDS_FILESAVEERROR,      "Could not write to the specified file."
  108.      IDS_FILEDOESNOTEXIST,   "File does not exist on the file system."
  109.      IDS_FILEOPENERROR,      "Could not open the requested file."
  110.      IDS_UNKNOWNERROR,       "Action failed due to an unknown error."
  111.      IDS_NOPOLYLINE,         "Could not find Polyline DLL (POLY08.DLL)."
  112.     END
  113.  
  114.  
  115. IDR_ACCELERATORS ACCELERATORS
  116.    BEGIN
  117.     VK_BACK,      IDM_EDITUNDO, ALT, VIRTKEY
  118.     VK_DELETE,    IDM_EDITCUT, SHIFT, VIRTKEY
  119.     VK_INSERT,    IDM_EDITCOPY, CONTROL, VIRTKEY
  120.     VK_INSERT,    IDM_EDITPASTE, SHIFT, VIRTKEY
  121.     "^Z",         IDM_EDITUNDO
  122.     "^X",         IDM_EDITCUT
  123.     "^C",         IDM_EDITCOPY
  124.     "^V",         IDM_EDITPASTE
  125.    END
  126.  
  127.  
  128. //Tables and such for StatStrip
  129.  
  130. IDR_STATMESSAGEMAP RCDATA
  131.     BEGIN
  132.      ID_MESSAGEEMPTY,           IDS_EMPTYMESSAGE,
  133.      ID_MESSAGEREADY,           IDS_READYMESSAGE
  134.  
  135.      ID_MENUSYS,                IDS_MENUMESSAGESYSTEM,
  136.      SC_SIZE,                   IDS_SYSMESSAGESIZE,
  137.      SC_MOVE,                   IDS_SYSMESSAGEMOVE,
  138.      SC_MINIMIZE,               IDS_SYSMESSAGEMINIMIZE,
  139.      SC_MAXIMIZE,               IDS_SYSMESSAGEMAXIMIZE,
  140.      SC_NEXTWINDOW,             IDS_SYSMESSAGENEXTWINDOW,
  141.      SC_PREVWINDOW,             IDS_SYSMESSAGEPREVWINDOW,
  142.      SC_CLOSE,                  IDS_SYSMESSAGECLOSE,
  143.      SC_RESTORE,                IDS_SYSMESSAGERESTORE,
  144.      SC_TASKLIST,               IDS_SYSMESSAGETASKLIST,
  145.  
  146.      ID_MENUFILE,               IDS_MENUMESSAGEFILE,
  147.      IDM_FILENEW,               IDS_ITEMMESSAGEFILENEW,
  148.      IDM_FILEOPEN,              IDS_ITEMMESSAGEFILEOPEN,
  149.      IDM_FILECLOSE,             IDS_ITEMMESSAGEFILECLOSE,
  150.      IDM_FILESAVE,              IDS_ITEMMESSAGEFILESAVE,
  151.      IDM_FILESAVEAS,            IDS_ITEMMESSAGEFILESAVEAS,
  152.      IDM_FILEIMPORT,            IDS_ITEMMESSAGEFILEIMPORT,
  153.      IDM_FILEEXIT,              IDS_ITEMMESSAGEFILEEXIT,
  154.  
  155.      ID_MENUEDIT,               IDS_MENUMESSAGEEDIT,
  156.      IDM_EDITUNDO,              IDS_ITEMMESSAGEEDITUNDO,
  157.      IDM_EDITCUT,               IDS_ITEMMESSAGEEDITCUT,
  158.      IDM_EDITCOPY,              IDS_ITEMMESSAGEEDITCOPY,
  159.      IDM_EDITPASTE,             IDS_ITEMMESSAGEEDITPASTE,
  160.  
  161.      ID_MENUWINDOW,             IDS_MENUMESSAGEWINDOW,
  162.      IDM_WINDOWCASCADE,         IDS_ITEMMESSAGEWINDOWCASCADE,
  163.      IDM_WINDOWTILEHORZ,        IDS_ITEMMESSAGEWINDOWTILEHORZ,
  164.      IDM_WINDOWTILEVERT,        IDS_ITEMMESSAGEWINDOWTILEVERT,
  165.      IDM_WINDOWICONS,           IDS_ITEMMESSAGEWINDOWICONS,
  166.  
  167.      ID_MENUHELP,               IDS_MENUMESSAGEHELP,
  168.      IDM_HELPABOUT,             IDS_ITEMMESSAGEHELPABOUT,
  169.  
  170.      ID_MENUCOLOR,              IDS_MENUMESSAGECOLOR,
  171.      IDM_COLORBACKGROUND,       IDS_ITEMMESSAGECOLORBACKGROUND,
  172.      IDM_COLORLINE,             IDS_ITEMMESSAGECOLORLINE,
  173.  
  174.      ID_MENULINE,               IDS_MENUMESSAGELINE,
  175.      IDM_LINESOLID,             IDS_ITEMMESSAGELINESOLID,
  176.      IDM_LINEDASH,              IDS_ITEMMESSAGELINEDASH,
  177.      IDM_LINEDOT,               IDS_ITEMMESSAGELINEDOT,
  178.      IDM_LINEDASHDOT,           IDS_ITEMMESSAGELINEDASHDOT,
  179.      IDM_LINEDASHDOTDOT,        IDS_ITEMMESSAGELINEDASHDOTDOT,
  180.     END
  181.  
  182.  
  183.  
  184. STRINGTABLE
  185.     BEGIN
  186.      IDS_EMPTYMESSAGE,                  ""
  187.      IDS_READYMESSAGE,                  "Ready"
  188.  
  189.      IDS_MENUMESSAGESYSTEM,             "Commands for working with this window"
  190.      IDS_SYSMESSAGESIZE,                "Change the size of this window"
  191.      IDS_SYSMESSAGEMOVE,                "Move this window to another position"
  192.      IDS_SYSMESSAGEMINIMIZE,            "Reduce this window to an icon"
  193.      IDS_SYSMESSAGEMAXIMIZE,            "Enlarge this window to its maximum size"
  194.      IDS_SYSMESSAGENEXTWINDOW,          "Switch to the next window"
  195.      IDS_SYSMESSAGEPREVWINDOW,          "Switch to the previous window"
  196.      IDS_SYSMESSAGECLOSE,               "Close this window"
  197.      IDS_SYSMESSAGERESTORE,             "Restore this window to its previous size"
  198.      IDS_SYSMESSAGETASKLIST,            "Open the Task List"
  199.  
  200.      IDS_MENUMESSAGEFILE,               "Commands for working with files"
  201.      IDS_ITEMMESSAGEFILENEW,            "Create a new, blank figure"
  202.      IDS_ITEMMESSAGEFILEOPEN,           "Open an existing figure"
  203.      IDS_ITEMMESSAGEFILECLOSE,          "Close the currently active figure"
  204.      IDS_ITEMMESSAGEFILESAVE,           "Save the currently active figure"
  205.      IDS_ITEMMESSAGEFILESAVEAS,         "Save the currently active figure under a new name"
  206.      IDS_ITEMMESSAGEFILEIMPORT,         "Load data from a file into the currently active figure"
  207.      IDS_ITEMMESSAGEFILEEXIT,           "Close the application"
  208.  
  209.      IDS_MENUMESSAGEEDIT,               "Commands for manipulating data"
  210.      IDS_ITEMMESSAGEEDITUNDO,           "Reverse previous actions"
  211.      IDS_ITEMMESSAGEEDITCUT,            "Move data to the clipboard"
  212.      IDS_ITEMMESSAGEEDITCOPY,           "Copy data to the clipboard"
  213.      IDS_ITEMMESSAGEEDITPASTE,          "Paste data from the clipboard into the active figure"
  214.  
  215.      IDS_MENUMESSAGEWINDOW,             "Commands for working with figure windows"
  216.      IDS_ITEMMESSAGEWINDOWCASCADE,      "Arrange figure windows in cascading style"
  217.      IDS_ITEMMESSAGEWINDOWTILEHORZ,     "Tile figure windows favoring width"
  218.      IDS_ITEMMESSAGEWINDOWTILEVERT,     "Tile figure windows favoring height"
  219.      IDS_ITEMMESSAGEWINDOWICONS,        "Arrange figure icons"
  220.  
  221.      IDS_MENUMESSAGEHELP,               "Commands for accessing Help"
  222.      IDS_ITEMMESSAGEHELPABOUT,          "View author information"
  223.  
  224.      IDS_MENUMESSAGECOLOR,              "Commands for affecting figure colors"
  225.      IDS_ITEMMESSAGECOLORBACKGROUND,    "Change the figure's background color"
  226.      IDS_ITEMMESSAGECOLORLINE,          "Change the figure's line color"
  227.  
  228.      IDS_MENUMESSAGELINE,               "Commands for changing line styles"
  229.      IDS_ITEMMESSAGELINESOLID,          "Redraw the figure with solid lines"
  230.      IDS_ITEMMESSAGELINEDASH,           "Redraw the figure with dashed lines"
  231.      IDS_ITEMMESSAGELINEDOT,            "Redraw the figure with dotted lines"
  232.      IDS_ITEMMESSAGELINEDASHDOT,        "Redraw the figure with dashed-dotted lines"
  233.      IDS_ITEMMESSAGELINEDASHDOTDOT,     "Redraw the figure with dash-dot-dotted lines"
  234.     END
  235.  
  236. rcinclude about.dlg
  237.