home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / shell / fileview / fvtext.rc < prev    next >
Encoding:
Text File  |  1997-10-05  |  5.7 KB  |  180 lines

  1. /*
  2.  * FVTEXT.RC
  3.  *
  4.  * Resources for the text FileViewer.  Requires modifications for
  5.  * a custom file type.
  6.  *
  7.  * Copyright (c) 1994-1997 Microsoft Corporation, All Rights Reserved
  8.  */
  9.  
  10.  
  11. #include <windows.h>
  12. #include "fileview.h"
  13.  
  14. //Go get version information
  15. //rcinclude fvtext.rcv
  16.  
  17. //Icon for About box and minimized frame window
  18. Icon ICON fvtext.ico
  19.  
  20. //Toolbar bitmaps
  21. IDB_TOOLS BITMAP tools.bmp
  22.  
  23.  
  24. IDR_MENU MENU MOVEABLE DISCARDABLE
  25.     BEGIN
  26.      POPUP "&File"
  27.       BEGIN
  28.        MENUITEM "&Open As Text File",   IDM_FILEOPENAS
  29.        MENUITEM SEPARATOR
  30.        MENUITEM "Page Set&up...",       IDM_FILEPAGESETUP GRAYED
  31.        MENUITEM "&Print...\tCtrl+P",    IDM_FILEPRINT GRAYED
  32.        MENUITEM SEPARATOR
  33.        MENUITEM "E&xit",                IDM_FILEEXIT
  34.       END
  35.  
  36.      POPUP "&View"
  37.       BEGIN
  38.        MENUITEM "&Toolbar",             IDM_VIEWTOOLBAR
  39.        MENUITEM "&Status Bar",          IDM_VIEWSTATUSBAR
  40.        MENUITEM "&Replace Window",      IDM_VIEWREPLACE
  41.        MENUITEM SEPARATOR
  42.        MENUITEM "&Font...",             IDM_VIEWFONT
  43.       END
  44.  
  45.      POPUP "&Help"
  46.       BEGIN
  47.        MENUITEM "&Help Contents..."     IDM_HELPCONTENTS
  48.        MENUITEM "&About Text Viewer...",IDM_HELPABOUT
  49.       END
  50.     END
  51.  
  52.  
  53. IDR_MENUVIEWPORT MENU MOVEABLE DISCARDABLE
  54.     BEGIN
  55.      MENUITEM "&Open As Text File",   IDM_FILEOPENAS
  56.      MENUITEM SEPARATOR
  57.      MENUITEM "&Font...",             IDM_VIEWFONT
  58.      MENUITEM SEPARATOR
  59.      MENUITEM "&Help Contents..."     IDM_HELPCONTENTS
  60.      MENUITEM "&About Text Viewer...",IDM_HELPABOUT
  61.     END
  62.  
  63.  
  64. IDR_ACCELERATORS ACCELERATORS
  65.    BEGIN
  66.     "^P",         IDM_FILEPRINT
  67.    END
  68.  
  69.  
  70. //About dialog resource
  71. IDD_ABOUT DIALOG 11, 22, 149, 48
  72. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  73. CAPTION "About Text Viewer"
  74. FONT 8, "Helv"
  75. BEGIN
  76.     ICON            "Icon", -1, 9, 6, 18, 16
  77.     CTEXT           "Sample Windows 95 File Viewer", -1, 40, 3, 100, 9, NOT
  78.                     WS_GROUP
  79.     CTEXT           "Copyright ⌐1994-1995 Microsoft Corp.", -1, 35, 12,
  80.                     112, 12, NOT WS_GROUP
  81.     DEFPUSHBUTTON   "OK", IDOK, 54, 30, 42, 15
  82. END
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89. //Stringtable for the FileViewer window
  90. STRINGTABLE
  91.     BEGIN
  92.      IDS_CLASSFRAME,         "FVText"
  93.      IDS_CLASSVIEWPORT,      "TextViewport"
  94.      IDS_CAPTION,            "Text File Viewer"
  95.      IDS_DOCUMENTTYPE,       "Text File"
  96.      IDS_NOHELP,             "Help is not implemented in this sample"
  97.      IDS_TOOLTIPOPENAS,      "Open As Text File"
  98.      IDS_TOOLTIPFONTINC,     "Increase Font Size"
  99.      IDS_TOOLTIPFONTDEC,     "Decrease Font Size"
  100.     END
  101.  
  102.  
  103.  
  104. //Stringtable for status bar messages
  105. STRINGTABLE
  106.     BEGIN
  107.      IDS_MSGEMPTY,           ""
  108.      IDS_MSGREADY,           "Display details may be inaccurate"
  109.  
  110.      IDS_MSGSYS,             "Commands for manipulating this and other windows"
  111.      IDS_MSGSYSRESTORE,      "Restores this window to normal size"
  112.      IDS_MSGSYSMOVE,         "Move this window to another screen location"
  113.      IDS_MSGSYSSIZE,         "Resize this window"
  114.      IDS_MSGSYSMINIMIZE,     "Collapse this window to an icon"
  115.      IDS_MSGSYSMAXIMIZE,     "Expand this window to full screen size"
  116.      IDS_MSGSYSCLOSE,        "Close this window"
  117.      IDS_MSGSYSTASKLIST,     "Switch to another task"
  118.  
  119.      IDS_MSGFILE,            "Commands for working with the file shown"
  120.      IDS_MSGFILEOPENAS,      "Open the file in an application for editing"
  121.      IDS_MSGFILEPAGESETUP,   "Change the page setup for printing"
  122.      IDS_MSGFILEPRINT,       "Print the file contents"
  123.      IDS_MSGFILEEXIT,        "Close the File Viewer"
  124.      IDS_MSGVIEW,            "Change tool visibility and fonts"
  125.      IDS_MSGVIEWTOOLBAR,     "Show/Hide the Toolbar"
  126.      IDS_MSGVIEWSTATUSBAR,   "Show/Hide the Status bar"
  127.      IDS_MSGVIEWFONT,        "Change the display font"
  128.      IDS_MSGHELP,            "Get help"
  129.      IDS_MSGHELPCONTENTS,    "Displays help for this window"
  130.      IDS_MSGHELPABOUT,       "Displays File Viewer information"
  131.  
  132.      IDS_MSGTIPFONTINC,      "Increase the font size of the display"
  133.      IDS_MSGTIPFONTDEC,      "Decrease the font size of the display"
  134.      IDS_MSGCHOOSEOPEN,      "To edit, choose Open As Text File"
  135.     END
  136.  
  137.  
  138.  
  139. /*
  140.  * Status bar message mapping from menu item IDs and other
  141.  * IDs to IDS_ values.  We use this to automatically manage
  142.  * WM_MENUSELECT messages.
  143.  *
  144.  * Note that under Win32 these are brought in as 16-bit values.
  145.  */
  146.  
  147. IDR_STATMESSAGEMAP RCDATA
  148.     BEGIN
  149.      ID_MSGEMPTY,               IDS_MSGEMPTY,
  150.      ID_MSGREADY,               IDS_MSGREADY
  151.  
  152.      ID_MENUSYS,                IDS_MSGSYS,
  153.      SC_RESTORE,                IDS_MSGSYSRESTORE,
  154.      SC_MOVE,                   IDS_MSGSYSMOVE,
  155.      SC_SIZE,                   IDS_MSGSYSSIZE,
  156.      SC_MINIMIZE,               IDS_MSGSYSMINIMIZE,
  157.      SC_MAXIMIZE,               IDS_MSGSYSMAXIMIZE,
  158.      SC_CLOSE,                  IDS_MSGSYSCLOSE,
  159.      SC_TASKLIST,               IDS_MSGSYSTASKLIST,
  160.  
  161.      ID_MENUFILE,               IDS_MSGFILE,
  162.      IDM_FILEOPENAS,            IDS_MSGFILEOPENAS,
  163.      IDM_FILEPAGESETUP,         IDS_MSGFILEPAGESETUP,
  164.      IDM_FILEPRINT,             IDS_MSGFILEPRINT,
  165.      IDM_FILEEXIT,              IDS_MSGFILEEXIT,
  166.  
  167.      ID_MENUVIEW,               IDS_MSGVIEW,
  168.      IDM_VIEWTOOLBAR,           IDS_MSGVIEWTOOLBAR,
  169.      IDM_VIEWSTATUSBAR,         IDS_MSGVIEWSTATUSBAR,
  170.      IDM_VIEWFONT,              IDS_MSGVIEWFONT,
  171.  
  172.      ID_MENUHELP,               IDS_MSGHELP,
  173.      IDM_HELPCONTENTS,          IDS_MSGHELPCONTENTS,
  174.      IDM_HELPABOUT,             IDS_MSGHELPABOUT,
  175.  
  176.      ID_TIPFONTINC,             IDS_MSGTIPFONTINC,
  177.      ID_TIPFONTDEC,             IDS_MSGTIPFONTDEC,
  178.      ID_MSGCHOOSEOPEN,          IDS_MSGCHOOSEOPEN
  179.     END
  180.