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

Windows编程

开发平台:

Visual C++

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