Annotation of os232sdk/toolkt20/c/samples/template/main.rc, revision 1.1.1.1

1.1       root        1: #include <os2.h>
                      2: #include "main.h"
                      3: #include "dlg.h"
                      4: 
                      5: ICON IDR_MAIN "main.ico"
                      6: 
                      7: MENU IDR_MAIN
                      8: {
                      9:     SUBMENU     "~File", IDM_FILE, MIS_TEXT
                     10:     {
                     11:         MENUITEM    "~New",             IDM_FILENEW,        MIS_TEXT
                     12:         MENUITEM    "~Open...",         IDM_FILEOPEN,       MIS_TEXT
                     13:         MENUITEM SEPARATOR
                     14:         MENUITEM    "~Save",            IDM_FILESAVE,       MIS_TEXT
                     15:         MENUITEM    "Save ~as...",      IDM_FILESAVEAS,     MIS_TEXT
                     16:         MENUITEM SEPARATOR
                     17:         MENUITEM    "~Print...",        IDM_FILEPRINT,      MIS_TEXT
                     18:         MENUITEM    "Pa~ge Setup...",   IDM_FILEPAGESETUP,  MIS_TEXT
                     19:         MENUITEM    "P~rint Setup...",  IDM_FILEPRINTSETUP, MIS_TEXT
                     20:         MENUITEM SEPARATOR
                     21:         MENUITEM    "E~xit",            IDM_FILEEXIT,       MIS_TEXT
                     22:     }
                     23: 
                     24:     SUBMENU     "~Edit", IDM_EDIT, MIS_TEXT
                     25:     {
                     26:         MENUITEM    "~Undo\tAlt+Backspace",     IDM_EDITUNDO,   MIS_TEXT
                     27:         MENUITEM SEPARATOR
                     28:         MENUITEM    "Cu~t\tShift+Del",          IDM_EDITCUT,    MIS_TEXT
                     29:         MENUITEM    "~Copy\tCtrl+Ins",          IDM_EDITCOPY,   MIS_TEXT
                     30:         MENUITEM    "~Paste\tShift+Ins",        IDM_EDITPASTE,  MIS_TEXT
                     31:         MENUITEM SEPARATOR
                     32:         MENUITEM    "Cl~ear\tDel",  IDM_EDITCLEAR,          MIS_TEXT
                     33:     }
                     34: 
                     35: /* -------------------------------------------------------- *
                     36:  * Application specific menus go here                       *
                     37:  * -------------------------------------------------------- */
                     38: 
                     39:     SUBMENU     "~Help",    IDM_HELP,   MIS_TEXT
                     40:     {
                     41:         MENUITEM    "~Help for help...",    IDM_HELPHELPFORHELP, MIS_TEXT
                     42:         MENUITEM    "~Extended help...",    IDM_HELPEXTENDED,   MIS_TEXT
                     43:         MENUITEM    "~Keys help...",        IDM_HELPKEYS,       MIS_TEXT
                     44:         MENUITEM    "Help ~index...",       IDM_HELPINDEX,      MIS_TEXT
                     45:         MENUITEM SEPARATOR
                     46:         MENUITEM    "~About...",            IDM_HELPABOUT,      MIS_TEXT
                     47:     }
                     48: 
                     49: }
                     50: 
                     51: ACCELTABLE IDR_MAIN
                     52: {
                     53:     VK_BACKSPACE,   IDM_EDITUNDO,       VIRTUALKEY,    ALT
                     54:     VK_DELETE,      IDM_EDITCUT,        VIRTUALKEY,    SHIFT
                     55:     VK_INSERT,      IDM_EDITCOPY,       VIRTUALKEY,    CONTROL
                     56:     VK_INSERT,      IDM_EDITPASTE,      VIRTUALKEY,    SHIFT
                     57:     VK_DELETE,      IDM_EDITCLEAR,      VIRTUALKEY
                     58: }
                     59: 
                     60: STRINGTABLE
                     61: {
                     62:     IDS_APPNAME                 "Template"
                     63:     IDS_FILEOPENEXT             "*.TXT"
                     64:     IDS_HELPLIBRARYNAME         "TEMPLATE.HLP"
                     65:     IDS_OPENDLGTITLE            "Open..."
                     66:     IDS_OPENDLGBUTTON           "Open"
                     67:     IDS_HELPWINDOWTITLE         "Template Help"
                     68:     IDS_SAVEDLGTITLE            "Save..."
                     69:     IDS_SAVEDLGBUTTON           "Save"
                     70:     IDS_UNTITLED                "Untitled"
                     71:     IDS_TITLEBARSEPARATOR       " - "
                     72:     IDS_PRINTSETUPTITLE         "Print Setup"
                     73:     IDS_PAGESETUPTITLE          "Page Setup"
                     74:     IDS_PRINTTITLE              "Print"
                     75:     IDS_OBJECTCLASS             "Object Class"
                     76: }
                     77: 
                     78: MESSAGETABLE
                     79: {
                     80:     IDMSG_INITFAILED            "Initialization failed."
                     81:     IDMSG_MAINWINCREATEFAILED   "Failed to create main window."
                     82:     IDMSG_CANNOTOPENINPUTFILE   "Cannot open input file."
                     83:     IDMSG_CANNOTOPENOUTPUTFILE  "Cannot open output file."
                     84:     IDMSG_CANNOTRUNPAGESETUP    "Cannot run Page Setup dialog."
                     85:     IDMSG_CANNOTRUNPRINTSETUP   "Cannot run Print Setup dialog."
                     86:     IDMSG_CANNOTRUNPRINT        "Cannot run Print dialog."
                     87:     IDMSG_CANNOTRUNCOLOR        "Cannot run Color dialog."
                     88:     IDMSG_CANNOTGETHPS          "Cannot get HPS for window."
                     89:     IDMSG_HELPLOADERROR         "Failed to load help manager."
                     90:     IDMSG_CANNOTLOADSTRING      "Failed to load string."
                     91:     IDMSG_CANNOTOPENPRINTER     "Failed to open printer."
                     92:     IDMSG_HELPDISPLAYERROR      "Failed to display help panel."
                     93:     IDMSG_CANNOTLOADEXITLIST    "Cannot load Exit List processor."
                     94:     IDMSG_PRINTINITFAILED       "Printer initialization failed."
                     95:     IDMSG_OVERWRITEFILE         "The file exists.  Do you want to overwrite it?"
                     96:     IDMSG_PRINTERROR            "Error while printing.  Printing aborted."
                     97:     IDMSG_UNDOFAILED            "Failed to Undo."
                     98:     IDMSG_CANNOTGETFILEINFO     "Error getting file information."
                     99:     IDMSG_CANNOTALLOCATEMEMORY  "Not enough memory."
                    100:     IDMSG_CANNOTREADFILE        "Error reading file."
                    101:     IDMSG_CANNOTWRITETOFILE     "Error writing file."
                    102:     IDMSG_CANNOTLOADFONTS       "Cannot load fonts."
                    103:     IDMSG_CANNOTGETPAGEINFO     "Error obtaining printer page information."
                    104: 
                    105: }
                    106: 
                    107: /* include dialog templates created by dialog box editor */
                    108: 
                    109: rcinclude template.dlg
                    110: rcinclude help.rc

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.