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

Windows编程

开发平台:

Visual C++

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