home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / tybc4 / xped3 / xped3app.rc < prev    next >
Encoding:
Text File  |  1994-02-13  |  13.7 KB  |  378 lines

  1. /*  Main xped3
  2.     
  3.     Copyright ⌐ 1993. All Rights Reserved.
  4.  
  5.     SUBSYSTEM:    xped3.exe Application
  6.     FILE:         xped3app.rc
  7.     AUTHOR:       
  8.  
  9.  
  10.     OVERVIEW
  11.     ========
  12.     All resources defined here.      
  13. */
  14.  
  15. #if !defined(WORKSHOP_INVOKED)
  16. #include <windows.h>
  17. #endif
  18. #include "xped3app.rh"
  19.  
  20. MDI_MENU MENU 
  21. BEGIN
  22.     POPUP "&File"
  23.     BEGIN
  24.         MENUITEM "&New", CM_MDIFILENEW
  25.         MENUITEM "&Open...", CM_MDIFILEOPEN
  26.         MENUITEM "&Close", CM_FILECLOSE
  27.         MENUITEM SEPARATOR
  28.         MENUITEM "&Save", CM_FILESAVE, GRAYED
  29.         MENUITEM "Save &As...", CM_FILESAVEAS, GRAYED
  30.         MENUITEM SEPARATOR
  31.         MENUITEM "E&xit\tAlt+F4", CM_EXIT
  32.     END
  33.  
  34.     POPUP "&Edit"
  35.     BEGIN
  36.         MENUITEM "&Undo\tAlt+BkSp", CM_EDITUNDO, GRAYED
  37.         MENUITEM SEPARATOR
  38.         MENUITEM "Cu&t\tShift+Del", CM_EDITCUT, GRAYED
  39.         MENUITEM "&Copy\tCtrl+Ins", CM_EDITCOPY, GRAYED
  40.         MENUITEM "&Paste\tShift+Ins", CM_EDITPASTE, GRAYED
  41.         MENUITEM SEPARATOR
  42.         MENUITEM "Clear &All\tCtrl+Del", CM_EDITCLEAR, GRAYED
  43.         MENUITEM "&Delete\tDel", CM_EDITDELETE, GRAYED
  44.     END
  45.  
  46.     POPUP "&Search"
  47.     BEGIN
  48.         MENUITEM "&Find...", CM_EDITFIND, GRAYED
  49.         MENUITEM "&Replace...", CM_EDITREPLACE, GRAYED
  50.         MENUITEM "&Next\aF3", CM_EDITFINDNEXT, GRAYED
  51.     END
  52.  
  53.     POPUP "&Window"
  54.     BEGIN
  55.         MENUITEM "&Cascade", CM_CASCADECHILDREN
  56.         MENUITEM "&Tile", CM_TILECHILDREN
  57.         MENUITEM "Arrange &Icons", CM_ARRANGEICONS
  58.         MENUITEM "C&lose All", CM_CLOSECHILDREN
  59.     END
  60.  
  61.     POPUP "&Help"
  62.     BEGIN
  63.         MENUITEM "&About...", CM_HELPABOUT
  64.     END
  65.  
  66. END
  67.  
  68.  
  69. // Accelerator table for short-cut to menu commands. (include\owl\editfile.rc)
  70. MDI_MENU ACCELERATORS
  71. BEGIN
  72.   VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
  73.   VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
  74.   VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
  75.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  76.   VK_BACK,   CM_EDITUNDO, VIRTKEY, ALT
  77.   VK_F3,     CM_EDITFINDNEXT, VIRTKEY
  78. END
  79.  
  80.  
  81. //
  82. // Table of help hints displayed in the status bar.
  83. //
  84. STRINGTABLE 
  85. BEGIN
  86.     -1,                         "File/document operations"
  87.     CM_MDIFILENEW,              "Creates a new document"
  88.     CM_MDIFILEOPEN,             "Opens an existing document"
  89.     CM_FILECLOSE,               "Close this document"
  90.     CM_FILESAVE,                "Saves this document"
  91.     CM_FILESAVEAS,              "Saves this document with a new name"
  92.     CM_EXIT,                    "Quits XpEd3App and prompts to save the documents"
  93.     CM_EDITUNDO-1,              "Edit operations"
  94.     CM_EDITUNDO,                "Reverses the last operation"
  95.     CM_EDITCUT,                 "Cuts the selection and puts it on the Clipboard"
  96.     CM_EDITCOPY,                "Copies the selection and puts it on the Clipboard"
  97.     CM_EDITPASTE,               "Inserts the clipboard contents at the insertion point"
  98.     CM_EDITDELETE,              "Deletes the selection"
  99.     CM_EDITCLEAR,               "Clear the document"
  100.     CM_EDITFIND-1,              "Search/replace operations"
  101.     CM_EDITFIND,                "Finds the specified text"
  102.     CM_EDITREPLACE,             "Finds the specified text and changes it"
  103.     CM_EDITFINDNEXT,            "Finds the next match"
  104.     CM_CASCADECHILDREN-1,       "Window arrangement and selection"
  105.     CM_CASCADECHILDREN,         "Cascades open windows"
  106.     CM_TILECHILDREN,            "Tiles open windows"
  107.     CM_ARRANGEICONS,            "Arranges iconic windows along bottom"
  108.     CM_CLOSECHILDREN,           "Closes all open windows"
  109.     CM_HELPABOUT-1,             "Access About"
  110.     CM_HELPABOUT,               "About the xped3 application"
  111. END
  112.  
  113.  
  114. //
  115. // OWL string table
  116. //
  117.  
  118. // EditFile (include\owl\editfile.rc and include\owl\editsear.rc)
  119. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  120. BEGIN
  121.     IDS_CANNOTFIND,             "Cannot find ""%s""."
  122.     IDS_UNTITLED,               "Untitled"
  123.     IDS_UNABLEREAD,             "Unable to read file %s from disk."
  124.     IDS_UNABLEWRITE,            "Unable to write file %s to disk."
  125.     IDS_FILECHANGED,            "The text in the %s file has changed.\n\nDo you want to save the changes?"
  126.     IDS_FILEFILTER,             "Text files (*.TXT)|*.TXT|AllFiles (*.*)|*.*|"
  127. END
  128.  
  129.  
  130. // Exception string resources (include\owl\except.rc)
  131. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  132. BEGIN
  133.     IDS_OWLEXCEPTION,           "ObjectWindows Exception"
  134.     IDS_UNHANDLEDXMSG,          "Unhandled Exception"
  135.     IDS_OKTORESUME,             "OK to resume?"
  136.     IDS_UNKNOWNEXCEPTION,       "Unknown exception"
  137.  
  138.     IDS_UNKNOWNERROR,           "Unknown error"
  139.     IDS_NOAPP,                  "No application object"
  140.     IDS_OUTOFMEMORY,            "Out of memory"
  141.     IDS_INVALIDMODULE,          "Invalid module specified for window"
  142.     IDS_INVALIDMAINWINDOW,      "Invalid MainWindow"
  143.  
  144.     IDS_INVALIDWINDOW,          "Invalid window %s"
  145.     IDS_INVALIDCHILDWINDOW,     "Invalid child window %s"
  146.     IDS_INVALIDCLIENTWINDOW,    "Invalid client window %s"
  147.  
  148.     IDS_CLASSREGISTERFAIL,      "Class registration fail for window %s"
  149.     IDS_CHILDREGISTERFAIL,      "Child class registration fail for window %s"
  150.     IDS_WINDOWCREATEFAIL,       "Create fail for window %s"
  151.     IDS_WINDOWEXECUTEFAIL,      "Execute fail for window %s"
  152.     IDS_CHILDCREATEFAIL,        "Child create fail for window %s"
  153.  
  154.     IDS_MENUFAILURE,            "Menu creation failure"
  155.     IDS_VALIDATORSYNTAX,        "Validator syntax error"
  156.     IDS_PRINTERERROR,           "Printer error"
  157.  
  158.     IDS_LAYOUTINCOMPLETE,       "Incomplete layout constraints specified in window %s"
  159.     IDS_LAYOUTBADRELWIN,        "Invalid relative window specified in layout constraint in window %s"
  160.  
  161.     IDS_GDIFAILURE,             "GDI failure"
  162.     IDS_GDIALLOCFAIL,           "GDI allocate failure"
  163.     IDS_GDICREATEFAIL,          "GDI creation failure"
  164.     IDS_GDIRESLOADFAIL,         "GDI resource load failure"
  165.     IDS_GDIFILEREADFAIL,        "GDI file read failure"
  166.     IDS_GDIDELETEFAIL,          "GDI object %X delete failure"
  167.     IDS_GDIDESTROYFAIL,         "GDI object %X destroy failure"
  168.     IDS_INVALIDDIBHANDLE,       "Invalid DIB handle %X"
  169. END
  170.  
  171.  
  172. // General Window's status bar messages. (include\owl\statusba.rc)
  173. STRINGTABLE
  174. BEGIN
  175.     IDS_MODES                   "EXT|CAPS|NUM|SCRL|OVR|REC"
  176.     SC_SIZE,                    "Changes the size of the window"
  177.     SC_MOVE,                    "Moves the window to another position"
  178.     SC_MINIMIZE,                "Reduces the window to an icon"
  179.     SC_MAXIMIZE,                "Enlarges the window to it maximum size"
  180.     SC_RESTORE,                 "Restores the window to its previous size"
  181.     SC_CLOSE,                   "Closes the window"
  182.     SC_TASKLIST,                "Opens task list"
  183.     SC_NEXTWINDOW,              "Switches to next window"
  184. END
  185.  
  186.  
  187. // Validator messages (include\owl\validate.rc)
  188. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  189. BEGIN
  190.     IDS_VALPXPCONFORM          "Input does not conform to picture:\n""%s"""
  191.     IDS_VALINVALIDCHAR         "Invalid character in input"
  192.     IDS_VALNOTINRANGE          "Value is not in the range %ld to %ld."
  193.     IDS_VALNOTINLIST           "Input is not in valid-list"
  194. END
  195.  
  196.  
  197. //
  198. // Bitmaps used by the speedbar.  Each bitmap is associated with a
  199. // particular menu command.
  200. //
  201. CM_MDIFILENEW BITMAP "new.bmp"
  202. CM_MDIFILEOPEN BITMAP "open.bmp"
  203. CM_FILESAVE BITMAP "save.bmp"
  204.  
  205. CM_EDITUNDO BITMAP "undo.bmp"
  206. CM_EDITCUT BITMAP "cut.bmp"
  207. CM_EDITCOPY BITMAP "copy.bmp"
  208. CM_EDITPASTE BITMAP "paste.bmp" 
  209.  
  210. CM_EDITFIND BITMAP "find.bmp"
  211. CM_EDITFINDNEXT BITMAP "findnext.bmp"
  212.  
  213.  
  214. //
  215. // Misc application definitions
  216. //
  217.  
  218. // MDI document ICON
  219. IDI_DOC ICON "mdichild.ico"
  220.  
  221. // Application ICON
  222. IDI_MDIAPPLICATION ICON "applmdi.ico"
  223.  
  224.  
  225. // About box.
  226. IDD_ABOUT DIALOG 12, 17, 204, 65
  227. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  228. CAPTION "About xped3"
  229. FONT 8, "MS Sans Serif"
  230. BEGIN
  231.     CTEXT "Version", IDC_VERSION, 2, 14, 200, 8, SS_NOPREFIX
  232.     CTEXT "My Application", -1, 2, 4, 200, 8, SS_NOPREFIX
  233.     CTEXT "", IDC_COPYRIGHT, 2, 27, 200, 17, SS_NOPREFIX
  234.     RTEXT "", IDC_DEBUG, 136, 55, 66, 8, SS_NOPREFIX
  235.     ICON IDI_MDIAPPLICATION, -1, 2, 2, 16, 16
  236.     DEFPUSHBUTTON "OK", IDOK, 88, 48, 28, 12
  237. END
  238.  
  239.  
  240. // TInputDialog class dialog box.
  241. IDD_INPUTDIALOG DIALOG 20, 24, 180, 64
  242. STYLE WS_POPUP | WS_CAPTION | DS_SETFONT
  243. FONT 8, "Helv"
  244. BEGIN
  245.     LTEXT "", ID_PROMPT, 10, 8, 160, 10, SS_NOPREFIX
  246.     CONTROL "", ID_INPUT, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL, 10, 20, 160, 12
  247.     DEFPUSHBUTTON "&OK", IDOK, 47, 42, 40, 14
  248.     PUSHBUTTON "&Cancel", IDCANCEL, 93, 42, 40, 14
  249. END
  250.  
  251.  
  252. // Horizontal slider thumb bitmap for TSlider and VSlider (include\owl\slider.rc)
  253. IDB_HSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE 
  254. BEGIN
  255.     '42 4D 66 01 00 00 00 00 00 00 76 00 00 00 28 00'
  256.     '00 00 12 00 00 00 14 00 00 00 01 00 04 00 00 00'
  257.     '00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00'
  258.     '00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
  259.     '00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
  260.     '00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
  261.     '00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
  262.     '00 00 FF FF FF 00 BB BB 0B BB BB BB B0 BB BB 00'
  263.     '00 00 BB B0 80 BB BB BB 08 0B BB 00 00 00 BB 08'
  264.     'F8 0B BB B0 87 70 BB 00 00 00 B0 8F F8 80 BB 08'
  265.     '77 77 0B 00 00 00 08 F8 88 88 00 88 88 87 70 00'
  266.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  267.     '88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
  268.     '77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
  269.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  270.     '88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
  271.     '77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
  272.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  273.     '88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
  274.     '77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
  275.     '00 00 0F F7 77 78 00 88 77 77 70 00 00 00 0F FF'
  276.     'FF FF 00 88 88 88 80 00 00 00 B0 00 00 00 BB 00'
  277.     '00 00 0B 00 00 00'
  278. END
  279.  
  280.  
  281. // Vertical slider thumb bitmap for TSlider and HSlider (include\owl\slider.rc)
  282. IDB_VSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE 
  283. BEGIN
  284.     '42 4D 2A 01 00 00 00 00 00 00 76 00 00 00 28 00'
  285.     '00 00 28 00 00 00 09 00 00 00 01 00 04 00 00 00'
  286.     '00 00 B4 00 00 00 00 00 00 00 00 00 00 00 00 00'
  287.     '00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
  288.     '00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
  289.     '00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
  290.     '00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
  291.     '00 00 FF FF FF 00 B0 00 00 00 00 00 00 00 00 0B'
  292.     'B0 00 00 00 00 00 00 00 00 0B 0F 88 88 88 88 88'
  293.     '88 88 88 80 08 88 88 88 88 88 88 88 88 80 0F 77'
  294.     '77 77 77 77 77 77 77 80 08 77 77 77 77 77 77 77'
  295.     '77 80 0F 77 FF FF FF FF FF FF F7 80 08 77 FF FF'
  296.     'FF FF FF FF F7 80 0F 70 00 00 00 00 00 00 77 80'
  297.     '08 70 00 00 00 00 00 00 77 80 0F 77 77 77 77 77'
  298.     '77 77 77 80 08 77 77 77 77 77 77 77 77 80 0F 77'
  299.     '77 77 77 77 77 77 77 80 08 77 77 77 77 77 77 77'
  300.     '77 80 0F FF FF FF FF FF FF FF FF F0 08 88 88 88'
  301.     '88 88 88 88 88 80 B0 00 00 00 00 00 00 00 00 0B'
  302.     'B0 00 00 00 00 00 00 00 00 0B'
  303. END
  304.  
  305.  
  306. // Version info.
  307. //
  308. #if !defined(__DEBUG_)
  309. // Non-Debug VERSIONINFO
  310. 1 VERSIONINFO LOADONCALL MOVEABLE 
  311. FILEVERSION 1, 0, 0, 0
  312. PRODUCTVERSION 1, 0, 0, 0
  313. FILEFLAGSMASK 0
  314. FILEFLAGS VS_FFI_FILEFLAGSMASK
  315. FILEOS VOS__WINDOWS16
  316. FILETYPE VFT_APP
  317. BEGIN
  318.     BLOCK "StringFileInfo"
  319.     BEGIN
  320.         // Language type = U.S. English (0x0409) and Character Set = Windows, Multilingual(0x04e4)
  321.         BLOCK "040904E4"                            // Matches VarFileInfo Translation hex value.
  322.         BEGIN
  323.             VALUE "CompanyName", "\000"
  324.             VALUE "FileDescription", "xped3 for Windows\000"
  325.             VALUE "FileVersion", "1.0\000"
  326.             VALUE "InternalName", "xped3\000"
  327.             VALUE "LegalCopyright", "Copyright ⌐ 1993. All Rights Reserved.\000"
  328.             VALUE "LegalTrademarks", "Windows /231 is a trademark of Microsoft Corporation\000"
  329.             VALUE "OriginalFilename", "xped3.EXE\000"
  330.             VALUE "ProductName", "xped3\000"
  331.             VALUE "ProductVersion", "1.0\000"
  332.         END
  333.     END
  334.  
  335.     BLOCK "VarFileInfo"
  336.     BEGIN
  337.         VALUE "Translation", 0x04e4, 0x0409        // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  338.     END
  339.  
  340. END
  341. #else
  342.  
  343. // Debug VERSIONINFO
  344. 1 VERSIONINFO LOADONCALL MOVEABLE 
  345. FILEVERSION 1, 0, 0, 0
  346. PRODUCTVERSION 1, 0, 0, 0
  347. FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PATCHED | VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD
  348. FILEFLAGS VS_FFI_FILEFLAGSMASK
  349. FILEOS VOS__WINDOWS16
  350. FILETYPE VFT_APP
  351. BEGIN
  352.     BLOCK "StringFileInfo"
  353.     BEGIN
  354.         // Language type = U.S. English (0x0409) and Character Set = Windows, Multilingual(0x04e4)
  355.         BLOCK "040904E4"                            // Matches VarFileInfo Translation hex value.
  356.         BEGIN
  357.             VALUE "CompanyName", "\000"
  358.             VALUE "FileDescription", "xped3 for Windows\000"
  359.             VALUE "FileVersion", "1.0\000"
  360.             VALUE "InternalName", "xped3\000"
  361.             VALUE "LegalCopyright", "Copyright ⌐ 1993. All Rights Reserved.\000"
  362.             VALUE "LegalTrademarks", "Windows \231 is a trademark of Microsoft Corporation\000"
  363.             VALUE "OriginalFilename", "xped3.EXE\000"
  364.             VALUE "ProductName", "xped3\000"
  365.             VALUE "ProductVersion", "1.0\000"
  366.             VALUE "SpecialBuild", "Debug Version\000"
  367.             VALUE "PrivateBuild", "Built by \000"
  368.         END
  369.     END
  370.  
  371.     BLOCK "VarFileInfo"
  372.     BEGIN
  373.         VALUE "Translation", 0x04e4, 0x0409        // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  374.     END
  375.  
  376. END
  377. #endif
  378.