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

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * COSMO.RC
  3.  * Cosmo Chapter 21
  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 21"
  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.      IDS_FIGUREINCONTAINER,  "Cosmo Figure in %s"
  88.      IDS_EXITANDRETURN,      "E&xit and return to %s"
  89.     #ifdef MDI
  90.      IDS_EMBEDDINGCAPTION,   "Figure in %s"
  91.     #else
  92.      IDS_EMBEDDINGCAPTION,   "Cosmo Chapter 21 - Figure in %s"
  93.     #endif
  94.      IDS_SAVECOPYAS,         "Save Copy &As..."
  95.      IDS_NEW,                "&New"
  96.      IDS_OPEN,               "&Open..."
  97.      IDS_CLOSE2,             "&Close"
  98.      IDS_SAVE,               "&Save"
  99.      IDS_SAVEAS,             "Save &As..."
  100.      IDS_EXIT,               "E&xit"
  101.     END
  102. //Stringtable for document windows.
  103. STRINGTABLE
  104.     BEGIN
  105.      IDS_CLIPBOARDFORMAT,    "Polyline Figure"
  106.      IDS_DOCUMENTCAPTION,    "Cosmo Figure"
  107.      IDS_VERSIONMISMATCH,    "The data in the file is not valid."
  108.      IDS_FILELOADERROR,      "Could not read the requested file."
  109.      IDS_FILESAVEERROR,      "Could not write to the specified file."
  110.      IDS_FILEDOESNOTEXIST,   "File does not exist on the file system."
  111.      IDS_FILEOPENERROR,      "Could not open the requested file."
  112.      IDS_UNKNOWNERROR,       "Action failed due to an unknown error."
  113.      IDS_VERSIONCHANGE,      "Are you sure you want to change from version %d.%d to version %d.%d?"
  114.      IDS_OBJECTDESCRIPTION,  "Cosmo Figure"
  115.     END
  116. //Object Strings
  117. STRINGTABLE
  118.     BEGIN
  119.      IDS_CLOSECAPTION,       "Cosmo Chapter 21"
  120.      IDS_CLOSEPROMPT,        "Figure has been modified.  Update now?"
  121.      IDS_USERTYPE,           "Cosmo Figure"
  122.      IDS_FORMAT,             "Polyline Figure"
  123.      //CHAPTER21MOD
  124.      IDS_EXTENSION,          ".COS"
  125.      //End CHAPTER21MOD
  126.     END
  127. IDR_ACCELERATORS ACCELERATORS
  128.    BEGIN
  129.     VK_BACK,      IDM_EDITUNDO, ALT, VIRTKEY
  130.     VK_DELETE,    IDM_EDITCUT, SHIFT, VIRTKEY
  131.     VK_INSERT,    IDM_EDITCOPY, CONTROL, VIRTKEY
  132.     VK_INSERT,    IDM_EDITPASTE, SHIFT, VIRTKEY
  133.     "^Z",         IDM_EDITUNDO
  134.     "^X",         IDM_EDITCUT
  135.     "^C",         IDM_EDITCOPY
  136.     "^V",         IDM_EDITPASTE
  137.    END
  138. //Tables and such for StatStrip
  139. IDR_STATMESSAGEMAP RCDATA
  140.     BEGIN
  141.      ID_MESSAGEEMPTY,           IDS_EMPTYMESSAGE,
  142.      ID_MESSAGEREADY,           IDS_READYMESSAGE
  143.      ID_MENUSYS,                IDS_MENUMESSAGESYSTEM,
  144.      SC_SIZE,                   IDS_SYSMESSAGESIZE,
  145.      SC_MOVE,                   IDS_SYSMESSAGEMOVE,
  146.      SC_MINIMIZE,               IDS_SYSMESSAGEMINIMIZE,
  147.      SC_MAXIMIZE,               IDS_SYSMESSAGEMAXIMIZE,
  148.      SC_NEXTWINDOW,             IDS_SYSMESSAGENEXTWINDOW,
  149.      SC_PREVWINDOW,             IDS_SYSMESSAGEPREVWINDOW,
  150.      SC_CLOSE,                  IDS_SYSMESSAGECLOSE,
  151.      SC_RESTORE,                IDS_SYSMESSAGERESTORE,
  152.      SC_TASKLIST,               IDS_SYSMESSAGETASKLIST,
  153.      ID_MENUFILE,               IDS_MENUMESSAGEFILE,
  154.      IDM_FILENEW,               IDS_ITEMMESSAGEFILENEW,
  155.      IDM_FILEOPEN,              IDS_ITEMMESSAGEFILEOPEN,
  156.      IDM_FILECLOSE,             IDS_ITEMMESSAGEFILECLOSE,
  157.      IDM_FILESAVE,              IDS_ITEMMESSAGEFILESAVE,
  158.      IDM_FILESAVEAS,            IDS_ITEMMESSAGEFILESAVEAS,
  159.      IDM_FILEIMPORT,            IDS_ITEMMESSAGEFILEIMPORT,
  160.      IDM_FILEEXIT,              IDS_ITEMMESSAGEFILEEXIT,
  161.      ID_MENUEDIT,               IDS_MENUMESSAGEEDIT,
  162.      IDM_EDITUNDO,              IDS_ITEMMESSAGEEDITUNDO,
  163.      IDM_EDITCUT,               IDS_ITEMMESSAGEEDITCUT,
  164.      IDM_EDITCOPY,              IDS_ITEMMESSAGEEDITCOPY,
  165.      IDM_EDITPASTE,             IDS_ITEMMESSAGEEDITPASTE,
  166.      ID_MENUWINDOW,             IDS_MENUMESSAGEWINDOW,
  167.      IDM_WINDOWCASCADE,         IDS_ITEMMESSAGEWINDOWCASCADE,
  168.      IDM_WINDOWTILEHORZ,        IDS_ITEMMESSAGEWINDOWTILEHORZ,
  169.      IDM_WINDOWTILEVERT,        IDS_ITEMMESSAGEWINDOWTILEVERT,
  170.      IDM_WINDOWICONS,           IDS_ITEMMESSAGEWINDOWICONS,
  171.      ID_MENUHELP,               IDS_MENUMESSAGEHELP,
  172.      IDM_HELPABOUT,             IDS_ITEMMESSAGEHELPABOUT,
  173.      ID_MENUCOLOR,              IDS_MENUMESSAGECOLOR,
  174.      IDM_COLORBACKGROUND,       IDS_ITEMMESSAGECOLORBACKGROUND,
  175.      IDM_COLORLINE,             IDS_ITEMMESSAGECOLORLINE,
  176.      ID_MENULINE,               IDS_MENUMESSAGELINE,
  177.      IDM_LINESOLID,             IDS_ITEMMESSAGELINESOLID,
  178.      IDM_LINEDASH,              IDS_ITEMMESSAGELINEDASH,
  179.      IDM_LINEDOT,               IDS_ITEMMESSAGELINEDOT,
  180.      IDM_LINEDASHDOT,           IDS_ITEMMESSAGELINEDASHDOT,
  181.      IDM_LINEDASHDOTDOT,        IDS_ITEMMESSAGELINEDASHDOTDOT,
  182.     END
  183. STRINGTABLE
  184.     BEGIN
  185.      IDS_EMPTYMESSAGE,                  ""
  186.      IDS_READYMESSAGE,                  "Ready"
  187.      IDS_MENUMESSAGESYSTEM,             "Commands for working with this window"
  188.      IDS_SYSMESSAGESIZE,                "Change the size of this window"
  189.      IDS_SYSMESSAGEMOVE,                "Move this window to another position"
  190.      IDS_SYSMESSAGEMINIMIZE,            "Reduce this window to an icon"
  191.      IDS_SYSMESSAGEMAXIMIZE,            "Enlarge this window to its maximum size"
  192.      IDS_SYSMESSAGENEXTWINDOW,          "Switch to the next window"
  193.      IDS_SYSMESSAGEPREVWINDOW,          "Switch to the previous window"
  194.      IDS_SYSMESSAGECLOSE,               "Close this window"
  195.      IDS_SYSMESSAGERESTORE,             "Restore this window to its previous size"
  196.      IDS_SYSMESSAGETASKLIST,            "Open the Task List"
  197.      IDS_MENUMESSAGEFILE,               "Commands for working with files"
  198.      IDS_ITEMMESSAGEFILENEW,            "Create a new, blank figure"
  199.      IDS_ITEMMESSAGEFILEOPEN,           "Open an existing figure"
  200.      IDS_ITEMMESSAGEFILECLOSE,          "Close the currently active figure"
  201.      IDS_ITEMMESSAGEFILESAVE,           "Save the currently active figure"
  202.      IDS_ITEMMESSAGEFILESAVEAS,         "Save the currently active figure under a new name"
  203.      IDS_ITEMMESSAGEFILEIMPORT,         "Load data from a file into the currently active figure"
  204.      IDS_ITEMMESSAGEFILEEXIT,           "Close the application"
  205.      IDS_MENUMESSAGEEDIT,               "Commands for manipulating data"
  206.      IDS_ITEMMESSAGEEDITUNDO,           "Reverse previous actions"
  207.      IDS_ITEMMESSAGEEDITCUT,            "Move data to the clipboard"
  208.      IDS_ITEMMESSAGEEDITCOPY,           "Copy data to the clipboard"
  209.      IDS_ITEMMESSAGEEDITPASTE,          "Paste data from the clipboard into the active figure"
  210.      IDS_MENUMESSAGEWINDOW,             "Commands for working with figure windows"
  211.      IDS_ITEMMESSAGEWINDOWCASCADE,      "Arrange figure windows in cascading style"
  212.      IDS_ITEMMESSAGEWINDOWTILEHORZ,     "Tile figure windows favoring width"
  213.      IDS_ITEMMESSAGEWINDOWTILEVERT,     "Tile figure windows favoring height"
  214.      IDS_ITEMMESSAGEWINDOWICONS,        "Arrange figure icons"
  215.      IDS_MENUMESSAGEHELP,               "Commands for accessing Help"
  216.      IDS_ITEMMESSAGEHELPABOUT,          "View author information"
  217.      IDS_MENUMESSAGECOLOR,              "Commands for affecting figure colors"
  218.      IDS_ITEMMESSAGECOLORBACKGROUND,    "Change the figure's background color"
  219.      IDS_ITEMMESSAGECOLORLINE,          "Change the figure's line color"
  220.      IDS_MENUMESSAGELINE,               "Commands for changing line styles"
  221.      IDS_ITEMMESSAGELINESOLID,          "Redraw the figure with solid lines"
  222.      IDS_ITEMMESSAGELINEDASH,           "Redraw the figure with dashed lines"
  223.      IDS_ITEMMESSAGELINEDOT,            "Redraw the figure with dotted lines"
  224.      IDS_ITEMMESSAGELINEDASHDOT,        "Redraw the figure with dashed-dotted lines"
  225.      IDS_ITEMMESSAGELINEDASHDOTDOT,     "Redraw the figure with dash-dot-dotted lines"
  226.     END
  227. rcinclude about.dlg