de_win.rc raw

   1  /*
   2   * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
   3   *
   4   * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
   5   * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
   6   *
   7   * Permission is hereby granted to use or copy this program
   8   * for any purpose, provided the above notices are retained on all copies.
   9   * Permission to modify the code and to distribute modified code is granted,
  10   * provided the above notices are retained, and a notice that the code was
  11   * modified is included with the above copyright notice.
  12   */
  13  
  14  #include "windows.h"
  15  #include "de_win.h"
  16  
  17  ABOUTBOX DIALOG 19, 21, 163, 47
  18  STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  19  CAPTION "About Demonstration Text Editor"
  20  BEGIN
  21      LTEXT "Demonstration Text Editor", -1, 44, 8, 118, 8, WS_CHILD | WS_VISIBLE | WS_GROUP
  22      PUSHBUTTON "OK", IDOK, 118, 27, 24, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
  23  END
  24  
  25  DE MENU
  26  BEGIN
  27      POPUP "&File"
  28      BEGIN
  29          MENUITEM "&Save\t^W", IDM_FILESAVE
  30          MENUITEM "E&xit\t^D", IDM_FILEEXIT
  31      END
  32  
  33      POPUP "&Edit"
  34      BEGIN
  35          MENUITEM "Page &Down\t^R^N", IDM_EDITPDOWN
  36          MENUITEM "Page &Up\t^R^P", IDM_EDITPUP
  37          MENUITEM "U&ndo\t^U", IDM_EDITUNDO
  38          MENUITEM "&Locate\t^L ... ^L", IDM_EDITLOCATE
  39          MENUITEM "D&own\t^N", IDM_EDITDOWN
  40          MENUITEM "U&p\t^P", IDM_EDITUP
  41          MENUITEM "Le&ft\t^B", IDM_EDITLEFT
  42          MENUITEM "&Right\t^F", IDM_EDITRIGHT
  43          MENUITEM "Delete &Backward\tBS", IDM_EDITBS
  44          MENUITEM "Delete F&orward\tDEL", IDM_EDITDEL
  45          MENUITEM "&Top\t^T", IDM_EDITTOP
  46      END
  47  
  48      POPUP "&Help"
  49      BEGIN
  50          MENUITEM "&Contents", IDM_HELPCONTENTS
  51          MENUITEM "&About...", IDM_HELPABOUT
  52      END
  53  
  54      MENUITEM "Page_&Down", IDM_EDITPDOWN
  55      MENUITEM "Page_&Up", IDM_EDITPUP
  56  END
  57  
  58  DE ACCELERATORS
  59  BEGIN
  60      "^R", IDM_EDITREPEAT
  61      "^N", IDM_EDITDOWN
  62      "^P", IDM_EDITUP
  63      "^L", IDM_EDITLOCATE
  64      "^B", IDM_EDITLEFT
  65      "^F", IDM_EDITRIGHT
  66      "^T", IDM_EDITTOP
  67      VK_DELETE, IDM_EDITDEL, VIRTKEY
  68      VK_BACK, IDM_EDITBS, VIRTKEY
  69  END
  70