home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / comctl / reitp / reitp.rc < prev    next >
Encoding:
Text File  |  1995-12-04  |  4.6 KB  |  159 lines

  1. #include <preinc.h>
  2. #include <windows.h>
  3. #include <dlgs.h>
  4. #include <richedit.h>
  5.  
  6. IconApp ICON    "reitp.ico"
  7.  
  8. #include "reitp.rh"
  9.  
  10. #include "reitp.dlg"
  11.  
  12. #include "frmtbar.rc"
  13.  
  14. LoadedMenu MENU
  15. {
  16.     POPUP    "&File"
  17.     {
  18.         MENUITEM    "&New",                    IDM_NEW
  19.         MENUITEM    "&Open...",                IDM_OPEN
  20.         MENUITEM    SEPARATOR
  21.         MENUITEM    "E&xit",                IDM_EXIT
  22.     }
  23. #ifdef DEBUG
  24.     POPUP    "&Debug"
  25.     {
  26.         MENUITEM "&Trace Points...",        IDM_TRACEDLG
  27.         MENUITEM "&Clear Debug Screen",        IDM_CLSDBG
  28.     }
  29. #endif
  30. }
  31.  
  32.  
  33. FullMenu MENU
  34. {
  35.     POPUP    "&File"
  36.     {
  37.         MENUITEM    "&New",                    IDM_NEW
  38.         MENUITEM    "&Open...",                IDM_OPEN
  39.         MENUITEM    "Re&vert",                IDM_REVERT
  40.         MENUITEM    "&Close",                IDM_CLOSE
  41.         MENUITEM    SEPARATOR
  42.         MENUITEM    "&Save",                IDM_SAVE
  43.         MENUITEM    "Save &As...",            IDM_SAVEAS
  44.         MENUITEM    SEPARATOR
  45.         MENUITEM    "&Print...",            IDM_PRINT
  46.         MENUITEM    "P&rint Setup...",        IDM_PRINTSETUP
  47.         MENUITEM    "Print Previe&w...",    IDM_PRINTPREVIEW
  48.         MENUITEM    SEPARATOR
  49.         MENUITEM    "E&xit",                IDM_EXIT
  50.     }
  51.     POPUP    "&Edit"
  52.     {
  53.         MENUITEM    "&Undo",                IDM_UNDO, GRAYED
  54.         MENUITEM    SEPARATOR
  55.         MENUITEM    "Cu&t",                    IDM_CUT, GRAYED
  56.         MENUITEM    "&Copy",                IDM_COPY, GRAYED
  57.         MENUITEM    "&Paste",                IDM_PASTE, GRAYED
  58.         MENUITEM    "Paste &Special",        IDM_PASTESPECIAL, GRAYED
  59.         MENUITEM    "&Delete",                IDM_DELETE, GRAYED
  60.         MENUITEM    "Select &All",            IDM_SELECTALL
  61.         MENUITEM    SEPARATOR
  62.         MENUITEM    "&Find...",                IDM_FIND
  63.         MENUITEM    "&Replace...",            IDM_REPLACE
  64.         MENUITEM    SEPARATOR
  65.         MENUITEM    "&Object",                IDM_OBJECT, GRAYED
  66.         MENUITEM    "&Insert Object...",    IDM_INSOBJ
  67.         MENUITEM    SEPARATOR
  68.         MENUITEM    "I&nsert From File...",    IDM_INSFILE
  69.         MENUITEM    "Save Se&lection As...", IDM_SAVESEL
  70.     }
  71.     POPUP    "Forma&t"
  72.     {
  73.         MENUITEM "&Character...",            IDM_CHARFORMAT
  74.         MENUITEM "&Apply To Word",            IDM_APPLYTOWORD, CHECKED
  75.         MENUITEM SEPARATOR
  76.         MENUITEM "Su&perscript",            IDM_SUPERSCRIPT
  77.         MENUITEM "Su&bscript",                IDM_SUBSCRIPT
  78.         MENUITEM SEPARATOR
  79.         MENUITEM "&Left",                    IDM_ALIGNLEFT
  80.         MENUITEM "Ce&nter",                    IDM_ALIGNCENTER
  81.         MENUITEM "&Right",                    IDM_ALIGNRIGHT
  82.         MENUITEM SEPARATOR
  83.         MENUITEM "&Indent First",            IDM_INDENTFIRST
  84.         MENUITEM "&Outdent First",            IDM_OUTDENTFIRST
  85.         MENUITEM SEPARATOR
  86.         MENUITEM "&Margins...",                IDM_MARGINS, GRAYED
  87.         MENUITEM "&Tabs...",                IDM_TABS, GRAYED
  88.         MENUITEM SEPARATOR
  89.         MENUITEM "Protecte&d",                IDM_PROTECTED
  90.         MENUITEM SEPARATOR
  91.         POPUP     "&Word Wrap"
  92.         {
  93.             MENUITEM "&None",                IDM_NOWRAP
  94.             MENUITEM "to &Window",            IDM_WRAP, CHECKED
  95.             MENUITEM "for &Printer",        IDM_WYSIWYG
  96.         }
  97.     }
  98.     POPUP    "O&ptions"
  99.     {
  100.         MENUITEM "Selection &Bar",            IDM_SELBAR
  101.         MENUITEM "Auto &Word Selection",    IDM_AUTOWORDSEL
  102.         MENUITEM "Show &Margins",            IDM_SHOWMARGINS, CHECKED
  103. #ifdef DEBUG
  104.         MENUITEM SEPARATOR
  105.         MENUITEM "&Read Only"                IDM_READONLY
  106.         MENUITEM "Auto. &Horz. Scroll"        IDM_AUTOHSCROLL
  107.         MENUITEM "Auto. &Vert. Scroll"        IDM_AUTOVSCROLL
  108.         MENUITEM "Auto. Hide &Selection"    IDM_AUTOHIDESEL
  109. #endif    // DEBUG
  110.     }
  111. #ifdef DEBUG
  112.     POPUP    "&Debug"
  113.     {
  114.         MENUITEM "&Trace Points...",        IDM_TRACEDLG
  115.         MENUITEM "&Dump ED",                IDM_DBGPED
  116.         MENUITEM "&Get Text",                IDM_GETTEXT
  117.         MENUITEM "&Clear Debug Screen",        IDM_CLSDBG
  118.         MENUITEM "&Ignore Left Clicks",        IDM_IGNORELEFTCLICK
  119.         MENUITEM "&Eat 'e's",                IDM_EATES
  120.         MENUITEM "Ignore &File Drops",        IDM_IGNOREDROPS
  121.         MENUITEM "&Bottomless",                IDM_BOTTOMLESS
  122.         MENUITEM "&Accept Only Text",        IDM_TEXTONLY
  123.         MENUITEM "&Paste Plain Text",        IDM_PASTEPLAINTEXT
  124.         MENUITEM "Paste &RTF As Text",        IDM_PASTERTFASTEXT
  125.         MENUITEM "Paste Text and &Objects",    IDM_PASTETXTOBJ
  126.         MENUITEM "Refuse &MSGraph Objects",    IDM_REFUSEGRAPH
  127.         MENUITEM "Big Text &Limit",            IDM_BIGLIMIT
  128.         MENUITEM "Fill 'er &up",            IDM_FILLERUP
  129.         MENUITEM "Print Previe&w via Metafile", IDM_PPMETA
  130.         MENUITEM "Enable pa&ste in read-only", IDM_ENABLEPASTEREADONLY
  131.         MENUITEM "E&nable cut in read-only", IDM_ENABLECUTREADONLY
  132.         MENUITEM "Enable drag in read-onl&y", IDM_ENABLEDRAGREADONLY
  133.         MENUITEM "Swap mo&ve/copy on drag",    IDM_SWAPDRAGEFFECT
  134.         MENUITEM "Hide",                    IDM_HIDE
  135.     }
  136. #endif    // DEBUG
  137. }
  138.  
  139.  
  140. WARPKEYS    ACCELERATORS
  141. BEGIN
  142.     "G",    IDM_GOTOCURSOR,        VIRTKEY, CONTROL
  143.     "G",    IDM_MOVECURSOR,        VIRTKEY, CONTROL, SHIFT
  144.     "I",    TBI_IncreaseIndent,    VIRTKEY, ALT
  145.     "O",    TBI_DecreaseIndent,    VIRTKEY, ALT
  146.     "B",    TBI_AccelBold,        VIRTKEY, CONTROL
  147.     "I",    TBI_AccelItalic,    VIRTKEY, CONTROL
  148.     "U",    TBI_AccelUnderline,    VIRTKEY, CONTROL
  149. END
  150.  
  151.  
  152. #define szModule    "reitp\0"
  153. #define szTarget    "reitp.exe\0"
  154.  
  155. #define szComment            "Microsoft Windows(TM) RichEdit ITP\0"
  156. #define szDescription        "Microsoft Windows(TM) RichEdit ITP\0"
  157. #define szIntlComment        "Microsoft Windows(TM) RichEdit ITP\0"
  158. #define szIntlDescription    "Microsoft Windows(TM) RichEdit ITP\0"
  159.