home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 / Programming Windows 95.iso / code / CHAP12 / GADGETS.RC < prev    next >
Encoding:
Text File  |  1996-01-01  |  8.7 KB  |  174 lines

  1. #include "gadgets.h"
  2. #include <windows.h>
  3.  
  4. IDI_APP ICON    DISCARDABLE     "gadgets.ico"
  5.  
  6. MAIN MENU DISCARDABLE 
  7.      {
  8.      POPUP "&File"
  9.           {
  10.           MENUITEM "&New",                        IDM_FILE_NEW
  11.           MENUITEM "&Open",                       IDM_FILE_OPEN
  12.           MENUITEM "&Save",                       IDM_FILE_SAVE
  13.           MENUITEM "Save &As...",                 IDM_FILE_SAVEAS
  14.           MENUITEM SEPARATOR
  15.           MENUITEM "&Print...",                   IDM_FILE_PRINT
  16.           MENUITEM "Print Pre&view...",           IDM_FILE_PREVIEW
  17.           MENUITEM SEPARATOR
  18.           MENUITEM "&Exit",                       IDM_FILE_EXIT
  19.           }
  20.      POPUP "&Edit"
  21.           {
  22.           MENUITEM "&Undo\tCtrl+Z",               IDM_EDIT_UNDO
  23.           MENUITEM SEPARATOR
  24.           MENUITEM "&Cut\tCtrl+X",                IDM_EDIT_CUT
  25.           MENUITEM "&Copy\tCtrl+C",               IDM_EDIT_COPY
  26.           MENUITEM "&Paste\tCtrl+V",              IDM_EDIT_PASTE
  27.           MENUITEM SEPARATOR
  28.           MENUITEM "Pr&operties",                 IDM_EDIT_PROP
  29.           }
  30.      POPUP "&Toolbar"
  31.           {
  32.           POPUP "St&yles"
  33.                {
  34.                MENUITEM "CCS_NODIVIDER",               IDM_NODIVIDER
  35.                MENUITEM "TBSTYLE_WRAPABLE",            IDM_WRAPABLE
  36.                MENUITEM SEPARATOR
  37.                MENUITEM "CCS_TOP",                     IDM_TOP
  38.                MENUITEM "CCS_BOTTOM",                  IDM_BOTTOM
  39.                MENUITEM "CCS_NOMOVEY",                 IDM_NOMOVEY
  40.                MENUITEM SEPARATOR
  41.                MENUITEM "CCS_NOPARENTALIGN",           IDM_NOPARENTALIGN
  42.                MENUITEM "CCS_NORESIZE",                IDM_NORESIZE
  43.                MENUITEM SEPARATOR
  44.                MENUITEM "CCS_ADJUSTABLE",              IDM_ADJUSTABLE
  45.                MENUITEM "TBSTYLE_ALTDRAG",             IDM_ALTDRAG
  46.                MENUITEM SEPARATOR
  47.                MENUITEM "TBSTYLE_TOOLTIPS",            IDM_TOOLTIPS
  48.                }
  49.           MENUITEM "&Ignore WM_SIZE",             IDM_IGNORESIZE
  50.           MENUITEM SEPARATOR
  51.           POPUP "&Messages"
  52.                {
  53.                MENUITEM "TB_CHECKBUTTON",              IDM_TB_CHECK
  54.                MENUITEM "TB_ENABLEBUTTON",             IDM_TB_ENABLE
  55.                MENUITEM "TB_HIDEBUTTON",               IDM_TB_HIDE
  56.                MENUITEM "TB_INDETERMINATE",            IDM_TB_INDETERMINATE
  57.                MENUITEM "TB_PRESSBUTTON",              IDM_TB_PRESS
  58.                MENUITEM SEPARATOR
  59.                MENUITEM "TB_BUTTONCOUNT",              IDM_TB_BUTTONCOUNT
  60.                MENUITEM "TB_GETROWS",                  IDM_TB_GETROWS
  61.                MENUITEM SEPARATOR
  62.                MENUITEM "TB_CUSTOMIZE",                IDM_TB_CUSTOMIZE
  63.                }
  64.           MENUITEM SEPARATOR
  65.           MENUITEM "&Large Icons",                IDM_LARGEICONS
  66.           MENUITEM "&Small Icons",                IDM_SMALLICONS
  67.           MENUITEM SEPARATOR
  68.           MENUITEM "S&trings",                    IDM_STRINGS
  69.           MENUITEM "&Combo Box",                  IDM_COMBOBOX
  70.           }
  71.      POPUP "&Statusbar"
  72.           {
  73.           POPUP "&Styles"
  74.                {
  75.                MENUITEM "SBARS_SIZEGRIP",              IDM_STAT_SIZEGRIP
  76.                MENUITEM SEPARATOR
  77.                MENUITEM "CCS_TOP",                     IDM_STAT_TOP
  78.                MENUITEM "CCS_BOTTOM",                  IDM_STAT_BOTTOM
  79.                MENUITEM "CCS_NOMOVEY",                 IDM_STAT_NOMOVEY
  80.                MENUITEM SEPARATOR
  81.                MENUITEM "CCS_NOPARENTALIGN",           IDM_STAT_NOPARENTALIGN
  82.                MENUITEM "CCS_NORESIZE",                IDM_STAT_NORESIZE
  83.                }
  84.           MENUITEM "&Ignore WM_SIZE",             IDM_STAT_IGNORESIZE
  85.           MENUITEM SEPARATOR
  86.           POPUP "&Messages"
  87.                {
  88.                MENUITEM "SB_GETBORDERS",               IDM_ST_GETBORDERS
  89.                MENUITEM "SB_GETPARTS",                 IDM_ST_GETPARTS
  90.                MENUITEM "SB_SETTEXT",                  IDM_ST_SETTEXT
  91.                MENUITEM SEPARATOR
  92.                MENUITEM "SB_SIMPLE",                   IDM_ST_SIMPLE
  93.                }
  94.           }
  95.      POPUP "&Notifications"
  96.           {
  97.           MENUITEM "&Clear",                      IDM_NOTIFICATIONS_CLEAR
  98.           }
  99.      POPUP "&View"
  100.           {
  101.           MENUITEM "&Toolbar",                    IDM_VIEW_TOOLBAR
  102.           MENUITEM "&Status Bar",                 IDM_VIEW_STATUS
  103.           MENUITEM "&Notifications",              IDM_VIEW_NOTIFICATIONS
  104.           }
  105.      }
  106.  
  107. STRINGTABLE DISCARDABLE 
  108.      {
  109.      IDS_MAIN_MENU           "Create, open, save, print documents or quit program"
  110.      IDS_MAIN_MENU1          "Undo, cut, copy, paste, and properties"
  111.      IDS_MAIN_MENU2          "Toolbar styles, messages, and creation options"
  112.      IDS_MAIN_MENU3          "Status bar styles and messages"
  113.      IDS_MAIN_MENU4          "Clear notifications window"
  114.      IDS_MAIN_MENU5          "Show or hide toolbar, status bar, and notifications window"
  115.      IDS_TOOLBAR_MENU        "Set toolbar styles and re-create toolbar"
  116.      IDS_TOOLBAR_MENU1       "placeholder"
  117.      IDS_TOOLBAR_MENU2       "placeholder"
  118.      IDS_TOOLBAR_MENU3       "Send messages to toolbar"
  119.      IDS_STATUSBAR_MENU      "Set status bar styles and re-create status bar"
  120.      IDS_STATUSBAR_MENU1     "placeholder"
  121.      IDS_STATUSBAR_MENU2     "placeholder"
  122.      IDS_STATUSBAR_MENU3     "Send messages to status bar"
  123.      IDM_FILE_NEW            "Creates a new document"
  124.      IDM_FILE_OPEN           "Open an existing document"
  125.      IDM_FILE_SAVE           "Save the active document"
  126.      IDM_FILE_SAVEAS         "Save the active document with a new name"
  127.      IDM_FILE_PRINT          "Prints the active document"
  128.      IDM_FILE_PREVIEW        "Displays full pages as they will be printed"
  129.      IDM_FILE_EXIT           "Quits program"
  130.      IDM_EDIT_UNDO           "Reverse the last action"
  131.      IDM_EDIT_CUT            "Cuts the selection and puts it on the Clipboard"
  132.      IDM_EDIT_COPY           "Copies the selection and puts it on the Clipboard"
  133.      IDM_EDIT_PASTE          "Inserts the Clipboard contents at the insertion point"
  134.      IDM_EDIT_PROP           "Opens property sheet for currently selected item"
  135.      IDM_IGNORESIZE          "Toggle WM_SIZE handling to show auto-size/auto move"
  136.      IDM_STRINGS             "Creates toolbar with strings"
  137.      IDM_LARGEICONS          "Creates toolbar with large icons"
  138.      IDM_SMALLICONS          "Creates toolbar with small icons"
  139.      IDM_COMBOBOX            "Creates toolbar with combobox"
  140.      IDM_NODIVIDER           "Toggle divider above toolbar"
  141.      IDM_WRAPABLE            "Toggle toolbar resizing for narrow window"
  142.      IDM_TOP                 "Toggle placing toolbar at top of parent"
  143.      IDM_BOTTOM              "Toggle placing toolbar at bottom of parent"
  144.      IDM_NOMOVEY             "Toggle inhibit moving window on Y-axis"
  145.      IDM_NOPARENTALIGN       "Toggle inhibit aligning to parent"
  146.      IDM_NORESIZE            "Toggle inhibit any sizing or moving"
  147.      IDM_ADJUSTABLE          "Toggle ability for user to customize toolbar"
  148.      IDM_ALTDRAG             "Toggle Alt-click to drag buttons"
  149.      IDM_TOOLTIPS            "Toggle tooltip support"
  150.      IDM_TB_CHECK            "Toggle button 0 checked state"
  151.      IDM_TB_ENABLE           "Toggle button 1 enabled state"
  152.      IDM_TB_HIDE             "Toggle button 2 hidden state"
  153.      IDM_TB_INDETERMINATE    "Toggle button 3 indeterminate state"
  154.      IDM_TB_PRESS            "Toggle button 4 pressed state"
  155.      IDM_TB_BUTTONCOUNT      "Query button count"
  156.      IDM_TB_GETROWS          "Query row count"
  157.      IDM_TB_CUSTOMIZE        "Request customize dialog box"
  158.      IDM_STAT_IGNORESIZE     "Toggle WM_SIZE handling to show auto-size/auto move"
  159.      IDM_STAT_SIZEGRIP       "Status bar to have sizing grip"
  160.      IDM_STAT_TOP            "Toggle placing status bar at top of parent"
  161.      IDM_STAT_BOTTOM         "Toggle placing status bar at bottom of parent"
  162.      IDM_STAT_NOMOVEY        "Toggle inhibit moving window on Y-axis"
  163.      IDM_STAT_NOPARENTALIGN  "Toggle inhibit aligning to parent"
  164.      IDM_STAT_NORESIZE       "Toggle inhibit any sizing or moving"
  165.      IDM_ST_GETBORDERS       "Query size of status bar borders"
  166.      IDM_ST_GETPARTS         "Query number of status bar parts"
  167.      IDM_ST_SETTEXT          "Set text in status bar"
  168.      IDM_ST_SIMPLE           "Toggle status bar simple state"
  169.      IDM_NOTIFICATIONS_CLEAR "Clear contents of notification window"
  170.      IDM_VIEW_TOOLBAR        "Show/hide toolbar"
  171.      IDM_VIEW_STATUS         "Show/hide status bar"
  172.      IDM_VIEW_NOTIFICATIONS  "Show/hide notification window"
  173.      }
  174.