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

Windows编程

开发平台:

Visual C++

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