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

Windows编程

开发平台:

Visual C++

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