home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / tybc4 / clsxprt1 / clsxpr1a.rc < prev    next >
Encoding:
Text File  |  1993-12-06  |  12.8 KB  |  356 lines

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