Annotation of os232sdk/toolkt20/c/samples/semaph/sem_main.h, revision 1.1

1.1     ! root        1: /*==============================================================*\
        !             2:  *                                                             *
        !             3:  *  Sem_main.h Sample PM application header file               *
        !             4:  *      Created 1990, Microsoft, IBM Corp.                      *
        !             5:  *                                                             *
        !             6:  *--------------------------------------------------------------*
        !             7:  *                                                             *
        !             8:  *  This header file contains the application wide constants   *
        !             9:  *  and structure definitions.                                 *
        !            10:  *                                                             *
        !            11: \*==============================================================*/
        !            12: 
        !            13: #define IDR_SAMPLE      8      /* resource identifier */
        !            14: #define ID_TIMER     9
        !            15: /*--------------------------------------------------------------*\
        !            16:  *  Menu item ids                                              *
        !            17: \*--------------------------------------------------------------*/
        !            18: #define IDM_FILE                           1000
        !            19: #define IDM_FILENEW                        1100
        !            20: #define IDM_FILEOPEN                       1200
        !            21: #define IDM_FILESAVE                       1300
        !            22: #define IDM_FILESAVEAS                     1400
        !            23: #define IDM_FILEPRINT                      1500
        !            24: #define IDM_FILEPAGESETUP                  1600
        !            25: #define IDM_FILEPRINTSETUP                 1700
        !            26: #define IDM_FILEEXIT                       1800
        !            27: 
        !            28: #define IDM_EDIT                           2000
        !            29: #define IDM_EDITUNDO                       2100
        !            30: #define IDM_EDITCUT                        2200
        !            31: #define IDM_EDITCOPY                       2300
        !            32: #define IDM_EDITPASTE                      2400
        !            33: #define IDM_EDITCLEAR                      2500
        !            34: 
        !            35: #define IDM_OPTIONS                        4000
        !            36: #define IDM_OPTIONS_NTHRDS                 4100
        !            37: #define IDM_OPTIONS_NTHRDS_2            4102
        !            38: #define IDM_OPTIONS_NTHRDS_4            4104
        !            39: #define IDM_OPTIONS_NTHRDS_8            4108
        !            40: #define IDM_OPTIONS_NTHRDS_16           4116
        !            41: #define IDM_OPTIONS_TIMEOUT                4200
        !            42: 
        !            43: #define IDM_SEMEXAMPLE                5000
        !            44: #define IDM_SEMSTART                  5100
        !            45: #define IDM_SEMSTART_MANUAL           5110
        !            46: #define IDM_SEMSTART_AUTO             5120
        !            47: #define IDM_SEMSTOP                   5200
        !            48: #define IDM_SEM_RESUMEAUTO            5300
        !            49: 
        !            50: #define IDM_POST                    6000
        !            51: 
        !            52: #define IDM_HELP                               9000
        !            53: #define IDM_HELPHELPFORHELP                9100
        !            54: #define IDM_HELPEXTENDED                   9200
        !            55: #define IDM_HELPKEYS                       9300
        !            56: #define IDM_HELPINDEX                      9400
        !            57: #define IDM_HELPTUTORIAL                   9500
        !            58: #define IDM_HELPABOUT                      9600
        !            59: 
        !            60: /* private message */
        !            61: #define IDM_STOPFINISHED           10000
        !            62: /*--------------------------------------------------------------*\
        !            63:  *  Dialog item ids                                            *
        !            64: \*--------------------------------------------------------------*/
        !            65: #define ID_OK              1
        !            66: #define ID_CANCEL          2
        !            67: 
        !            68: /*--------------------------------------------------------------*\
        !            69:  *  Stringtable ids                                            *
        !            70: \*--------------------------------------------------------------*/
        !            71: #define IDS_APPNAME                  1
        !            72: #define IDS_INFOONE           2
        !            73: #define IDS_INFOTWO           3
        !            74: #define IDS_HELPLIBRARYNAME      4
        !            75: #define IDS_FILEOPENEXT          5
        !            76: 
        !            77: /*--------------------------------------------------------------*\
        !            78:  *  Messagetable ids                                           *
        !            79: \*--------------------------------------------------------------*/
        !            80: #define IDMSG_INITFAILED               1
        !            81: #define IDMSG_MAINWINCREATEFAILED      2
        !            82: #define IDMSG_CANNOTOPENINPUTFILE      3
        !            83: #define IDMSG_CANNOTRUNPAGESETUP       4
        !            84: #define IDMSG_CANNOTRUNPRINTSETUP      5
        !            85: #define IDMSG_CANNOTRUNPRINT           6
        !            86: #define IDMSG_CANNOTRUNCOLOR           7
        !            87: #define IDMSG_CANNOTGETHPS             8
        !            88: #define IDMSG_HELPLOADERROR            9
        !            89: #define IDMSG_CANNOTLOADSTRING        10
        !            90: #define IDMSG_CANNOTOPENPRINTER        11
        !            91: #define IDMSG_CANNOTSTART       12
        !            92: 
        !            93: /*--------------------------------------------------------------*\
        !            94:  *  Other constants                                            *
        !            95: \*--------------------------------------------------------------*/
        !            96: #define MAXTEXTLEN     40    /* maximum text length for window */
        !            97: #define MESSAGELEN     80    /* maximum length for messages */
        !            98: #define MAXAPPNAMELEN  15
        !            99: 
        !           100: /*--------------------------------------------------------------*\
        !           101:  *  Data structures and typedefs                               *
        !           102: \*--------------------------------------------------------------*/
        !           103: 
        !           104: struct _WINDOWDATA  {
        !           105:     LONG clrFore;
        !           106:     LONG clrBack;
        !           107:     UCHAR *szText[MAXTEXTLEN + 1];
        !           108: };
        !           109: 
        !           110: typedef struct _WINDOWDATA WINDOWDATA;
        !           111: /* hungarian notation: wdata */
        !           112: typedef WINDOWDATA * PWINDOWDATA;
        !           113: 
        !           114: #define WM_USERCHANGED    (WM_USER+1)
        !           115: 
        !           116: /******************************************************
        !           117:  *
        !           118:  * Cruiser version define
        !           119:  *
        !           120:  ******************************************************/
        !           121: #define     VER678

unix.superglobalmegacorp.com

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