home *** CD-ROM | disk | FTP | other *** search
/ PC Press 1997 July / Sezamfile97_2.iso / windows / program / activex / axtsamp.exe / TSBRANCH.EXE / STOCLIEN / STOCLIEN.RC < prev    next >
Text File  |  1997-01-12  |  6KB  |  182 lines

  1. //===========================================================================
  2. //  File:      STOCLIEN.RC
  3. //
  4. //  Summary:   Resource definition file for STOCLIEN.EXE.
  5. //
  6. //  Origin:    12-28-96: atrent - Editor-inheritance from CONCLIEN source.
  7. //
  8. // -------------------------------------------------------------------------
  9. //  This file is part of the Microsoft ActiveX Tutorial Code Samples.
  10. //
  11. //  Copyright (C) Microsoft Corporation, 1997.  All rights reserved.
  12. //
  13. //  This source code is intended only as a supplement to Microsoft
  14. //  Development Tools and/or on-line documentation.  See these other
  15. //  materials for detailed information regarding Microsoft code samples.
  16. //
  17. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  18. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  19. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  20. //  PARTICULAR PURPOSE.
  21. //===========================================================================
  22.  
  23. // We include ole2.h because we're defining the Version Info.
  24. // We include STOCLIEN.H for Resource IDs unique to STOCLIEN.EXE.
  25. #include <ole2.h>
  26. #include "stoclien.h"
  27.  
  28.  
  29. // The main keyboard accelerator resource table.
  30. AppAccel ACCELERATORS MOVEABLE PURE
  31. BEGIN
  32.   VK_F1,          IDM_HELP_CONTENTS,      VIRTKEY
  33.   "?",            IDM_HELP_CONTENTS,      ASCII
  34. END
  35.  
  36.  
  37. // The About Box dialog resource.
  38. IDM_HELP_ABOUT DIALOG DISCARDABLE  67, 46, 196, 53
  39. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  40. CAPTION "About STOCLIEN"
  41. FONT 8, "MS Shell Dlg"
  42. BEGIN
  43.   ICON            "AppIcon",-1,6,7,18,20
  44.   LTEXT           "Tutorial Code Sample: STOCLIEN Version 1.0",-1,32,7,
  45.                     155,8,NOT WS_GROUP
  46.   LTEXT           "Copyright 1997 Microsoft Corporation",-1,32,18,155,
  47.                     8,NOT WS_GROUP
  48.   PUSHBUTTON      "OK",IDOK,75,32,40,14
  49. END
  50.  
  51.  
  52. // The main icon resource for the application.
  53. AppIcon ICON DISCARDABLE "stoclien.ico"
  54.  
  55. // The pen cursor resource for this drawing application.
  56. AppCursor CURSOR DISCARDABLE "pencil.cur"
  57.  
  58.  
  59. // The main menu resource definition.
  60. STOCLIENMENU MENU DISCARDABLE
  61. BEGIN
  62.   POPUP "&File"
  63.   BEGIN
  64.     MENUITEM "&Open...",                IDM_FILE_OPEN
  65.     MENUITEM "&Save",                   IDM_FILE_SAVE
  66.     MENUITEM "Save &As...",             IDM_FILE_SAVEAS
  67.     MENUITEM SEPARATOR
  68.     MENUITEM "E&xit",                   IDM_FILE_EXIT
  69.   END
  70.   POPUP "&Draw"
  71.   BEGIN
  72.     MENUITEM "Drawing &On",             IDM_DRAW_ON
  73.     MENUITEM "Drawing O&ff",            IDM_DRAW_OFF, CHECKED
  74.     MENUITEM SEPARATOR
  75.     MENUITEM "&Redraw",                 IDM_DRAW_REDRAW
  76.     MENUITEM "&Erase",                  IDM_DRAW_ERASE
  77.   END
  78.   POPUP "&Pen"
  79.   BEGIN
  80.     MENUITEM "&Color...",               IDM_PEN_COLOR
  81.     MENUITEM SEPARATOR
  82.     MENUITEM "&Thin",                   IDM_PEN_THIN, CHECKED
  83.     MENUITEM "&Medium",                 IDM_PEN_MEDIUM
  84.     MENUITEM "Thic&k",                  IDM_PEN_THICK
  85.   END
  86.   POPUP "&Sink"
  87.   BEGIN
  88.     MENUITEM "&Connect",                IDM_SINK_ON
  89.     MENUITEM "&Disconnect",             IDM_SINK_OFF, CHECKED
  90.   END
  91.   POPUP "&Help"
  92.   BEGIN
  93. //  MENUITEM "&Help Topics",            IDM_HELP_CONTENTS
  94.     MENUITEM "STOCLIEN &Tutorial",      IDM_HELP_TUTORIAL
  95.     MENUITEM "STO&SERVE Tutorial",      IDM_HELP_TUTSERVER
  96.     MENUITEM "Read Source &File...",    IDM_HELP_READSOURCE
  97.     MENUITEM SEPARATOR
  98.     MENUITEM "&About STOCLIEN...",      IDM_HELP_ABOUT
  99.   END
  100. END
  101.  
  102.  
  103. // Error Box String Resources.
  104. STRINGTABLE DISCARDABLE
  105. BEGIN
  106.   IDS_COMINITFAILED       "STOCLIEN: COM initialization failed."
  107.   IDS_APPINITFAILED       "STOCLIEN: App initialization failed."
  108.   IDS_OUTOFMEMORY         "STOCLIEN: Ran out of memory."
  109.   IDS_NOHELPFILE          "STOCLIEN: Can't find .HLP file."
  110.   IDS_NOUNICODE           "STOCLIEN: Can't run with Unicode."
  111.   IDS_NOSERVER            "STOCLIEN: Server not registered."
  112.   IDS_ASSERT_FAIL         "STOCLIEN: Assertion Failed."
  113. END
  114.  
  115. // File operation string resources.
  116. STRINGTABLE DISCARDABLE
  117. BEGIN
  118.   IDS_DRAWING_CHANGED     "STOCLIEN: Drawing was changed"
  119.   IDS_ASK_SAVE            " changed. Save it?"
  120.   IDS_OFN_PAPFILES        "DllPaper Files (*.PAP)\0*.PAP\0"
  121.   IDS_OFN_PAPOPEN         "Open DllPaper File"
  122.   IDS_OFN_PAPSAVE         "Save DllPaper File"
  123. END
  124.  
  125. // Defines for the Open File Name Common Dialog.
  126.  
  127.  
  128. // Notice Box and Message log String Resources.
  129. STRINGTABLE DISCARDABLE
  130. BEGIN
  131.   IDS_START_MESSAGE_LOG   "========== Trace Message Log =========="
  132. END
  133.  
  134.  
  135. // If being read in by AppStudio we don't confuse it with this Version Info.
  136. #ifndef APSTUDIO_INVOKED
  137.  
  138. // The version information for the binary.
  139. VS_VERSION_INFO VERSIONINFO
  140. FILEVERSION    1,0,0,0
  141. PRODUCTVERSION 1,0,0,0
  142. FILEFLAGSMASK  VS_FFI_FILEFLAGSMASK
  143. #ifndef DEBUG
  144.   FILEFLAGS    0
  145. #else
  146.   FILEFLAGS    VS_FF_DEBUG | VS_FF_PRERELEASE
  147. #endif
  148. FILEOS         VOS_NT_WINDOWS32
  149. FILETYPE       VFT_APP
  150. FILESUBTYPE    VFT2_UNKNOWN
  151. BEGIN
  152.   BLOCK "StringFileInfo"
  153.   BEGIN
  154.     #ifdef UNICODE
  155.       BLOCK "040904B0" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=Unicode
  156.     #else
  157.       BLOCK "040904E4" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=MultiLang
  158.     #endif
  159.     BEGIN
  160.       VALUE "CompanyName",     "Microsoft Corporation"
  161.       VALUE "FileDescription", "STOCLIEN: Tutorial Code Sample"
  162.       VALUE "FileVersion",     "1.00"
  163.       VALUE "InternalName",    "STOCLIEN"
  164.       VALUE "LegalCopyright",  "Copyright \251 1997 Microsoft Corp. "
  165.       VALUE "OriginalFilename","STOCLIEN.EXE"
  166.       VALUE "ProductName",     "Microsoft\256 Tutorial Code Samples"
  167.       VALUE "ProductVersion",  "1.00"
  168.     END
  169.   END
  170.  
  171.   BLOCK "VarFileInfo"
  172.   BEGIN
  173.     #ifdef UNICODE
  174.       VALUE "Translation", 0x409, 1200  //English (0x409), Unicode (1200)
  175.     #else
  176.       VALUE "Translation", 0x409, 1252  //English (0x409), ANSI (1252)
  177.     #endif
  178.   END
  179. END
  180.  
  181. #endif
  182.