home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / step15.pak / STEP15DV.RC < prev   
Text File  |  1997-07-23  |  2KB  |  93 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1994 by Borland International
  3. //   Tutorial application
  4. //----------------------------------------------------------------------------
  5. #include <owl/window.rh>
  6. #include <owl/oleview.rh>
  7.  
  8. #define CM_ABOUT            205  // same as step15.rc's
  9. #define CM_PENSIZE          306
  10. #define CM_PENCOLOR         307
  11.  
  12. #define IDM_DRAWVIEW        218
  13. #define IDM_DRAWLISTVIEW    219
  14. #define IDA_DRAWLISTVIEW    220
  15. #define IDS_FILEINFO        221
  16. #define IDA_DRAWVIEW        222
  17.  
  18. #ifdef RC_INVOKED
  19. #ifndef WORKSHOP_INVOKED
  20. # include <windows.h>
  21. #endif
  22.  
  23. #include <owl/inputdia.rc>
  24. #include <owl/oleview.rc>
  25.  
  26. IDM_DRAWVIEW MENU
  27. {
  28.  MENUITEM Separator
  29.  POPUP "&Edit"
  30.  {
  31.   MENUITEM "&Undo\aCtrl+Z", CM_EDITUNDO
  32.   MENUITEM Separator
  33.   MENUITEM "&Cut\aCtrl+X",  CM_EDITCUT
  34.   MENUITEM "C&opy\aCtrl+C", CM_EDITCOPY
  35.   MENUITEM "&Clear",        CM_EDITCLEAR
  36.  }
  37.  POPUP "&Tools"
  38.  {
  39.   MENUITEM "Pen Si&ze",     CM_PENSIZE
  40.   MENUITEM "Pen Colo&r",    CM_PENCOLOR
  41.  }
  42. }
  43.  
  44.  
  45. IDA_DRAWVIEW ACCELERATORS
  46. BEGIN
  47.   "^z",      CM_EDITUNDO,
  48.   "^x",      CM_EDITCUT,
  49.   "^c",      CM_EDITCOPY,
  50.   VK_DELETE, CM_EDITCUT,   VIRTKEY, SHIFT
  51.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  52.   VK_INSERT, CM_EDITCOPY,  VIRTKEY, CONTROL
  53.   VK_BACK,   CM_EDITUNDO,  VIRTKEY, ALT
  54. END
  55.  
  56.  
  57. IDM_DRAWLISTVIEW MENU
  58. {
  59.  MENUITEM Separator
  60.  POPUP "&Edit"
  61.  {
  62.   MENUITEM "&Undo\aCtrl+Z",        CM_EDITUNDO
  63.   MENUITEM Separator
  64.   MENUITEM "&Delete\aDel",         CM_EDITDELETE
  65.   MENUITEM "C&lear All\aCtrl+Del", CM_EDITCLEAR
  66.   MENUITEM Separator
  67.   MENUITEM "Pen Si&ze",            CM_PENSIZE
  68.   MENUITEM "Pen Colo&r",           CM_PENCOLOR
  69.  }
  70. }
  71.  
  72. IDA_DRAWLISTVIEW ACCELERATORS
  73. BEGIN
  74.   "^z",      CM_EDITUNDO,
  75.   VK_DELETE, CM_EDITDELETE,  VIRTKEY
  76.   VK_DELETE, CM_EDITCLEAR,   VIRTKEY, CONTROL
  77.   VK_BACK,   CM_EDITUNDO,    VIRTKEY, ALT
  78. END
  79.  
  80. STRINGTABLE
  81. {
  82.  CM_PENSIZE,    "Changes the pen width"
  83.  CM_PENCOLOR,   "Changes the pen color"
  84.  CM_EDITUNDO,   "Undo last action"
  85.  CM_EDITCUT,    "Cut the selected object"
  86.  CM_EDITCOPY,   "Copy the selected object"
  87.  CM_EDITDELETE, "Erase selected line"
  88.  CM_EDITCLEAR,  "Erase all lines"
  89.  IDS_FILEINFO,  "Lines from Step 15"
  90. }
  91.  
  92. #endif  // RC_INVOKED
  93.