Annotation of os232sdk/toolkt20/c/samples/style/sty_main.h, revision 1.1.1.1

1.1       root        1: /*==============================================================*\
                      2:  *                                                              *
                      3:  *  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_MAIN         1      /* resource identifier */
                     14: 
                     15: /*--------------------------------------------------------------*\
                     16:  *  Dialog box ids                                              *
                     17: \*--------------------------------------------------------------*/
                     18: #define IDD_FILEOPEN    2000
                     19: #define IDD_FILESAVE    2001
                     20: #define IDD_FONT        2002
                     21: 
                     22: #define IDD_MSGBOX      1001
                     23: #define ID_MLE          1002
                     24: 
                     25: /*--------------------------------------------------------------*\
                     26:  *  Menu item ids                                               *
                     27: \*--------------------------------------------------------------*/
                     28: #define IDM_FILE                            1000
                     29: #define IDM_FILENEW                         1100
                     30: #define IDM_FILEOPEN                        1200
                     31: #define IDM_FILESAVE                        1300
                     32: #define IDM_FILESAVEAS                      1400
                     33: #define IDM_FILEPRINT                       1500
                     34: #define IDM_FILEPAGESETUP                   1600
                     35: #define IDM_FILEPRINTSETUP                  1700
                     36: #define IDM_FILEEXIT                        1800
                     37: 
                     38: #define IDM_EDIT                            2000
                     39: #define IDM_EDITUNDO                        2100
                     40: #define IDM_EDITCUT                         2200
                     41: #define IDM_EDITCOPY                        2300
                     42: #define IDM_EDITPASTE                       2400
                     43: #define IDM_EDITCLEAR                       2500
                     44: 
                     45: #define IDM_OPTIONS                         3000
                     46: #define IDM_OPTIONSFORECOLOR                3100
                     47: #define IDM_OPTIONSBACKCOLOR                3200
                     48: #define IDM_OPTIONSBACKCOLORYELLOW          3210
                     49: #define IDM_OPTIONSBACKCOLORPINK            3220
                     50: #define IDM_OPTIONSBACKCOLORCYAN            3230
                     51: #define IDM_OPTIONSBACKCOLORDEFAULT         3240
                     52: #define IDM_OPTIONSFONT                     3300
                     53: 
                     54: #define IDM_DEMO                            4000
                     55: #define IDM_DEMODLG                         4100
                     56: #define IDM_DEMODLGBUTTONS                  4110
                     57: #define IDM_DEMODLGLISTBOXES                4120
                     58: #define IDM_DEMODLGCOMBOBOXES               4130
                     59: #define IDM_DEMODLGENTRYFIELDS              4140
                     60: #define IDM_DEMODLGSTATIC                   4150
                     61: #define IDM_DEMODLGPP                       4160
                     62: 
                     63: #define IDM_DEMOMSGBOX                      4200
                     64: #define IDM_DEMOMSGBOXOK                    4210
                     65: #define IDM_DEMOMSGBOXOKCANCEL              4220
                     66: #define IDM_DEMOMSGBOXYESNO                 4230
                     67: #define IDM_DEMOMSGBOXYESNOCANCEL           4240
                     68: #define IDM_DEMOMSGBOXRETRYCANCEL           4250
                     69: #define IDM_DEMOMSGBOXABORT                 4260
                     70: #define IDM_DEMOMSGBOXENTER                 4270
                     71: #define IDM_DEMOMSGBOXENTERCANCEL           4280
                     72: #define IDM_DEMOMSGBOXQUERY                 4290
                     73: #define IDM_DEMOMSGBOXWARNING               4300
                     74: #define IDM_DEMOMSGBOXINFO                  4310
                     75: #define IDM_DEMOMSGBOXCRITICAL              4320
                     76: #define IDM_DEMOMSGBOXAPP                   4330
                     77: #define IDM_DEMOMSGBOXSYS                   4340
                     78: #define IDM_DEMOMSGBOXMOVEABLE              4350
                     79: #define IDM_DEMOMSGBOXHELP                  4360
                     80: 
                     81: #define IDM_HELP                            9000
                     82: #define IDM_HELPHELPFORHELP                 9100
                     83: #define IDM_HELPEXTENDED                    9200
                     84: #define IDM_HELPKEYS                        9300
                     85: #define IDM_HELPINDEX                       9400
                     86: #define IDM_HELPTUTORIAL                    9500
                     87: #define IDM_HELPABOUT                       9600
                     88: 
                     89: /*--------------------------------------------------------------*\
                     90:  *  Dialog item ids                                             *
                     91: \*--------------------------------------------------------------*/
                     92: #define ID_OK               1
                     93: #define ID_CANCEL           2
                     94: 
                     95: /*--------------------------------------------------------------*\
                     96:  *  Stringtable ids                                             *
                     97: \*--------------------------------------------------------------*/
                     98: #define IDS_FILEOPENEXT             1
                     99: #define IDS_APPNAME                 2
                    100: #define IDS_HELPLIBRARYNAME         3
                    101: #define IDS_OPENDLGTITLE            4
                    102: #define IDS_OPENDLGBUTTON           5
                    103: #define IDS_HELPWINDOWTITLE         6
                    104: #define IDS_SAVEDLGTITLE            7
                    105: #define IDS_SAVEDLGBUTTON           8
                    106: #define IDS_UNTITLED                9
                    107: #define IDS_TITLEBARSEPARATOR      10
                    108: #define IDS_PRINTSETUPTITLE        11
                    109: #define IDS_PAGESETUPTITLE         12
                    110: #define IDS_PRINTTITLE             13
                    111: #define IDS_PPFONTPOINT            14
                    112: #define IDS_FONTDLGTITLE           15
                    113: 
                    114: #define IDS_DEMOMSGBOXOK           20
                    115: #define IDS_DEMOMSGBOXOKCANCEL     21
                    116: #define IDS_DEMOMSGBOXYESNO        22
                    117: #define IDS_DEMOMSGBOXYESNOCANCEL  23
                    118: #define IDS_DEMOMSGBOXRETRYCANCEL  24
                    119: #define IDS_DEMOMSGBOXABORT        25
                    120: #define IDS_DEMOMSGBOXENTER        26
                    121: #define IDS_DEMOMSGBOXENTERCANCEL  27
                    122: #define IDS_DEMOMSGBOXQUERY        28
                    123: #define IDS_DEMOMSGBOXWARNING      29
                    124: #define IDS_DEMOMSGBOXINFO         30
                    125: #define IDS_DEMOMSGBOXCRITICAL     31
                    126: #define IDS_DEMOMSGBOXAPP          32
                    127: #define IDS_DEMOMSGBOXSYS          33
                    128: #define IDS_DEMOMSGBOXMOVEABLE     34
                    129: #define IDS_DEMOMSGBOXHELP         35
                    130: 
                    131: 
                    132: #define IDS_LISTBOX1               40
                    133: #define IDS_LISTBOX2               41
                    134: #define IDS_LISTBOX3               42
                    135: #define IDS_LISTBOX4               43
                    136: #define IDS_LISTBOX5               44
                    137: #define IDS_LISTBOX6               45
                    138: #define IDS_LISTBOX7               46
                    139: #define IDS_LISTBOX8               47
                    140: #define IDS_LISTBOX9               48
                    141: #define IDS_LISTBOX10              49
                    142: 
                    143: #define IDS_BLUE                   50
                    144: #define IDS_RED                    51
                    145: #define IDS_PINK                   52
                    146: #define IDS_GREEN                  53
                    147: #define IDS_CYAN                   54
                    148: #define IDS_YELLOW                 55
                    149: #define IDS_DARKGRAY               56
                    150: #define IDS_DARKBLUE               57
                    151: #define IDS_DARKRED                58
                    152: #define IDS_DARKPINK               59
                    153: #define IDS_DARKGREEN              60
                    154: #define IDS_DARKCYAN               61
                    155: #define IDS_BROWN                  62
                    156: #define IDS_PALEGRAY               63
                    157: #define IDS_DEFAULT                64
                    158: 
                    159: #define IDS_FIRSTCOLOR             IDS_BLUE
                    160: 
                    161: /*--------------------------------------------------------------*\
                    162:  *  Messagetable ids                                            *
                    163: \*--------------------------------------------------------------*/
                    164: #define IDMSG_INITFAILED                1
                    165: #define IDMSG_MAINWINCREATEFAILED       2
                    166: #define IDMSG_CANNOTOPENINPUTFILE       3
                    167: #define IDMSG_CANNOTOPENOUTPUTFILE      4
                    168: #define IDMSG_CANNOTRUNPAGESETUP        5
                    169: #define IDMSG_CANNOTRUNPRINTSETUP       6
                    170: #define IDMSG_CANNOTRUNPRINT            7
                    171: #define IDMSG_CANNOTRUNCOLOR            8
                    172: #define IDMSG_CANNOTGETHPS              9
                    173: #define IDMSG_HELPLOADERROR            10
                    174: #define IDMSG_CANNOTLOADSTRING         11
                    175: #define IDMSG_CANNOTOPENPRINTER        12
                    176: #define IDMSG_HELPDISPLAYERROR         13
                    177: #define IDMSG_CANNOTLOADEXITLIST       14
                    178: #define IDMSG_PRINTINITFAILED          15
                    179: #define IDMSG_OVERWRITEFILE            16
                    180: #define IDMSG_PRINTERROR               17
                    181: #define IDMSG_UNDOFAILED               18
                    182: #define IDMSG_CANNOTGETFILEINFO        19
                    183: #define IDMSG_CANNOTALLOCATEMEMORY     20
                    184: #define IDMSG_CANNOTREADFILE           21
                    185: #define IDMSG_CANNOTWRITETOFILE        22
                    186: #define IDMSG_CANNOTLOADFONTS          23
                    187: #define IDMSG_CANNOTGETPAGEINFO        24
                    188: #define IDMSG_PRINTAREATOOSMALL        25
                    189: #define IDMSG_CANNOTSETPP              26
                    190: 
                    191: /*--------------------------------------------------------------*\
                    192:  *  Other constants                                             *
                    193: \*--------------------------------------------------------------*/
                    194: #define MESSAGELEN          50    /* maximum length for messages */
                    195: #define TITLESEPARATORLEN   4     /* length of title bar separator string */
                    196: 
                    197: #ifndef CCHMAXFILE
                    198: #define CCHMAXFILE          80
                    199: #endif
                    200: 
                    201: 
                    202: #define SM_SETFOCUS     WM_USER+100     /* message to set the focus to MLE */

unix.superglobalmegacorp.com

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