Annotation of os232sdk/toolkt20/c/samples/image/img_main.rc, revision 1.1

1.1     ! root        1: #define INCL_WINSTDFILE
        !             2: #include <os2.h>
        !             3: #include  "img_main.h"
        !             4: #include  "img_dlg.h"
        !             5: 
        !             6: ICON IDR_MAIN image.ico
        !             7: 
        !             8: MENU IDR_MAIN PRELOAD
        !             9: {
        !            10:     SUBMENU     "~File",                 IDM_FILE
        !            11:     {
        !            12:         MENUITEM    "~Open...",          IDM_FILEOPEN
        !            13:         MENUITEM SEPARATOR
        !            14:         MENUITEM    "E~xit \tF3",        IDM_FILEEXIT
        !            15:     }
        !            16: 
        !            17: /* -------------------------------------------------------- *
        !            18:  * Application specific menus go here                       *
        !            19:  * -------------------------------------------------------- */
        !            20:     SUBMENU         "~View",             IDM_VIEW
        !            21:     {
        !            22:         MENUITEM    "~Detail",           IDM_VIEWDETAIL
        !            23: 
        !            24:         MENUITEM    SEPARATOR
        !            25:         SUBMENU     "~Foreground color",  IDM_VIEWFOREGROUNDCOLOR
        !            26:         {
        !            27:             MENUITEM    "~Black",  IDM_VIEWFORECOLORBLACK
        !            28:             MENUITEM    "~White",  IDM_VIEWFORECOLORWHITE
        !            29:             MENUITEM    "Bl~ue",   IDM_VIEWFORECOLORBLUE
        !            30:             MENUITEM    "~Green",  IDM_VIEWFORECOLORGREEN
        !            31:             MENUITEM    "~Yellow", IDM_VIEWFORECOLORYELLOW
        !            32:             MENUITEM    "~Red",    IDM_VIEWFORECOLORRED
        !            33:         }
        !            34:         SUBMENU     "~Background color", IDM_VIEWBACKGROUNDCOLOR
        !            35:         {
        !            36:             MENUITEM    "~Black",  IDM_VIEWBACKCOLORBLACK
        !            37:             MENUITEM    "~White",  IDM_VIEWBACKCOLORWHITE
        !            38:             MENUITEM    "Bl~ue",   IDM_VIEWBACKCOLORBLUE
        !            39:             MENUITEM    "~Green",  IDM_VIEWBACKCOLORGREEN
        !            40:             MENUITEM    "~Yellow", IDM_VIEWBACKCOLORYELLOW
        !            41:             MENUITEM    "~Red",    IDM_VIEWBACKCOLORRED
        !            42:         }
        !            43:         MENUITEM SEPARATOR
        !            44:         MENUITEM    "~Save position",    IDM_VIEWSAVEPOSITION
        !            45:         MENUITEM    "~Restore position", IDM_VIEWRESTOREPOSITION
        !            46:     }
        !            47:     SUBMENU         "~Help",             IDM_HELP
        !            48:     {
        !            49:         MENUITEM    "~Help for help...", IDM_HELPHELPFORHELP
        !            50: 
        !            51:        /*
        !            52:         * allow system to process Extended Help, Help Keys
        !            53:         * & Help Index
        !            54:         */
        !            55:         MENUITEM    "~Extended help...", SC_HELPEXTENDED, MIS_SYSCOMMAND
        !            56:         MENUITEM    "~Keys help...",     SC_HELPKEYS,     MIS_SYSCOMMAND
        !            57:         MENUITEM    "Help ~index...",    SC_HELPINDEX,    MIS_SYSCOMMAND
        !            58:         MENUITEM SEPARATOR
        !            59:         MENUITEM    "~About...",         IDM_HELPABOUT
        !            60:     }
        !            61: }
        !            62: 
        !            63: 
        !            64: ACCELTABLE IDR_MAIN PRELOAD
        !            65: BEGIN
        !            66:     VK_F3, IDM_FILEEXIT, VIRTUALKEY
        !            67: END
        !            68: 
        !            69: 
        !            70: STRINGTABLE  PRELOAD
        !            71: BEGIN
        !            72:     IDS_APPNAME                 "Image"
        !            73:     IDS_FILEOPENEXTENSION       "*.IMG"
        !            74:     IDS_HELPLIBRARYNAME         "IMAGE.HLP"     /* not to be translated */
        !            75:     IDS_OPENDLGHEADER           "Open..."
        !            76:     IDS_OPENDLGBUTTON           "Open"
        !            77:     IDS_HELPWINDOWTITLE         "Image Help"
        !            78:     IDS_UNTITLED                "Untitled"
        !            79:     IDS_TITLEBARSEPARATOR       " - "
        !            80: END
        !            81: 
        !            82: MESSAGETABLE
        !            83: BEGIN
        !            84:     IDMSG_INITFAILED           "Initalization failed."
        !            85:     IDMSG_MAINWINCREATEFAILED  "Failed to create main window."
        !            86:     IDMSG_CANNOTOPENINPUTFILE  "Cannot open input file."
        !            87:     IDMSG_HELPLOADERROR        "Failed to load help manager."
        !            88:     IDMSG_CANNOTLOADSTRING     "Failed to load string."
        !            89:     IDMSG_OUTOFMEMORY          "Out of memory."
        !            90:     IDMSG_LOADERROR            "Error loading Image File."
        !            91:     IDMSG_BACKEQFORE           "Foreground color = background color. Is this correct ?"
        !            92:     IDMSG_CANNOTRUNFILEOPEN    "Cannot run Open dialog."
        !            93:     IDMSG_HELPDISPLAYERROR     "Failed to display help panel."
        !            94:     IDMSG_CANNOTLOADEXITLIST   "Cannot load Exit List processor."
        !            95:     IDMSG_HELPMANAGERERROR     "Help Manager Error occured - destroying Help instance."
        !            96:     IDMSG_WARNING              "Warning"
        !            97: END
        !            98: 
        !            99: /* include dialog templates created by dialog box editor */
        !           100: rcinclude image.dlg
        !           101: rcinclude img_help.rc

unix.superglobalmegacorp.com

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