home *** CD-ROM | disk | FTP | other *** search
- /*************************************************************************
- *
- * File Name : STY_MAIN.H
- *
- * Description : This header file contains the application wide constants
- * and structure definitions.
- *
- * Copyright (C) 1992 IBM Corporation
- *
- * DISCLAIMER OF WARRANTIES. The following [enclosed] code is
- * sample code created by IBM Corporation. This sample code is not
- * part of any standard or IBM product and is provided to you solely
- * for the purpose of assisting you in the development of your
- * applications. The code is provided "AS IS", without
- * warranty of any kind. IBM shall not be liable for any damages
- * arising out of your use of the sample code, even if they have been
- * advised of the possibility of such damages. *
- *
- ************************************************************************/
-
- #define IDR_MAIN 1 /* resource identifier */
- #define IDR_ICON1 2 /* resource identifier */
- #define IDR_ICON2 3 /* resource identifier */
- #define IDR_ICON3 4 /* resource identifier */
- #define IDR_ICON4 5 /* resource identifier */
- #define IDR_BITMAP 6 /* resource identifier */
-
- /*--------------------------------------------------------------*\
- * Dialog box ids *
- \*--------------------------------------------------------------*/
- #define IDD_FILEOPEN 2000
- #define IDD_FILESAVE 2001
- #define IDD_FONT 2002
-
- #define IDD_MSGBOX 1001
- #define ID_MLE 1002
-
- /*--------------------------------------------------------------*\
- * Menu item ids *
- \*--------------------------------------------------------------*/
- #define IDM_FILE 1000
- #define IDM_FILENEW 1100
- #define IDM_FILEOPEN 1200
- #define IDM_FILESAVE 1300
- #define IDM_FILESAVEAS 1400
- #define IDM_EXIT 1900
-
- #define IDM_EDIT 2000
- #define IDM_EDITUNDO 2100
- #define IDM_EDITCUT 2200
- #define IDM_EDITCOPY 2300
- #define IDM_EDITPASTE 2400
- #define IDM_EDITCLEAR 2500
-
- #define IDM_OPTIONS 3000
- #define IDM_OPTIONSFORECOLOR 3100
- #define IDM_OPTIONSFORECOLORBLACK 3110
- #define IDM_OPTIONSFORECOLORBLUE 3120
- #define IDM_OPTIONSFORECOLORRED 3130
- #define IDM_OPTIONSFORECOLORDEFAULT 3140
- #define IDM_OPTIONSBACKCOLOR 3200
- #define IDM_OPTIONSBACKCOLORYELLOW 3210
- #define IDM_OPTIONSBACKCOLORPINK 3220
- #define IDM_OPTIONSBACKCOLORCYAN 3230
- #define IDM_OPTIONSBACKCOLORDEFAULT 3240
- #define IDM_OPTIONSFONT 3300
-
- #define IDM_DEMO 4000
- #define IDM_DEMODLG 4100
- #define IDM_DEMODLGBUTTONS 4110
- #define IDM_DEMODLGLISTBOXES 4120
- #define IDM_DEMODLGCOMBOBOXES 4130
- #define IDM_DEMODLGENTRYFIELDS 4140
- #define IDM_DEMODLGSTATIC 4150
- #define IDM_DEMODLGPP 4160
- #define IDM_DEMODLGSLIDER 4170
- #define IDM_DEMODLGSPINBUTTON 4180
- #define IDM_DEMODLGVALUESET 4190
- #define IDM_DEMODLGNOTEBOOK 4191
- #define IDM_DEMODLGCONTAINER 4192
- #define IDM_DEMOCUACONTROLS 4193
- #define IDM_DEMOBROADCASTDLG 4194
-
- #define IDM_DEMOMSGBOX 4200
- #define IDM_DEMOMSGBOXOK 4210
- #define IDM_DEMOMSGBOXOKCANCEL 4220
- #define IDM_DEMOMSGBOXYESNO 4230
-
- #define IDM_DEMOMSGBOXYESNOCANCEL 4240
- #define IDM_DEMOMSGBOXRETRYCANCEL 4250
- #define IDM_DEMOMSGBOXABORT 4260
- #define IDM_DEMOMSGBOXENTER 4270
- #define IDM_DEMOMSGBOXENTERCANCEL 4280
- #define IDM_DEMOMSGBOXQUERY 4290
- #define IDM_DEMOMSGBOXWARNING 4300
- #define IDM_DEMOMSGBOXINFO 4310
- #define IDM_DEMOMSGBOXCRITICAL 4320
- #define IDM_DEMOMSGBOXAPP 4330
- #define IDM_DEMOMSGBOXSYS 4340
- #define IDM_DEMOMSGBOXHELP 4360
-
- #define IDM_HELP 9000
- #define IDM_HELPUSINGHELP 9100
- #define IDM_HELPGENERAL 9200
- #define IDM_HELPKEYS 9300
- #define IDM_HELPINDEX 9400
- #define IDM_HELPTUTORIAL 9500
- #define IDM_HELPPRODINFO 9600
-
- #define IDM_NAME 9701
- #define IDM_TEXT 9702
- #define IDM_ICON 9703
- #define IDM_DETAIL 9704
- #define IDM_VIEWS 9705
- #define IDD_CONTAINERMENU 9706
-
- /*--------------------------------------------------------------*\
- * Dialog item ids *
- \*--------------------------------------------------------------*/
- #define ID_OK 1
- #define ID_CANCEL 2
-
- /*--------------------------------------------------------------*\
- * Stringtable ids *
- \*--------------------------------------------------------------*/
- #define IDS_FILEOPENEXT 1
- #define IDS_APPNAME 2
- #define IDS_HELPLIBRARYNAME 3
- #define IDS_OPENDLGTITLE 4
- #define IDS_OPENDLGBUTTON 5
- #define IDS_HELPWINDOWTITLE 6
- #define IDS_SAVEDLGTITLE 7
- #define IDS_SAVEDLGBUTTON 8
- #define IDS_UNTITLED 9
- #define IDS_TITLEBARSEPARATOR 10
- #define IDS_PPFONTPOINT 14
- #define IDS_FONTDLGTITLE 15
-
- #define IDS_DEMOMSGBOXOK 20
- #define IDS_DEMOMSGBOXOKCANCEL 21
- #define IDS_DEMOMSGBOXYESNO 22
- #define IDS_DEMOMSGBOXYESNOCANCEL 23
- #define IDS_DEMOMSGBOXRETRYCANCEL 24
- #define IDS_DEMOMSGBOXABORT 25
- #define IDS_DEMOMSGBOXENTER 26
- #define IDS_DEMOMSGBOXENTERCANCEL 27
- #define IDS_DEMOMSGBOXQUERY 28
- #define IDS_DEMOMSGBOXWARNING 29
- #define IDS_DEMOMSGBOXINFO 30
- #define IDS_DEMOMSGBOXCRITICAL 31
- #define IDS_DEMOMSGBOXAPP 32
- #define IDS_DEMOMSGBOXSYS 33
- #define IDS_DEMOMSGBOXHELP 35
-
-
- #define IDS_LISTBOX1 40
- #define IDS_LISTBOX2 41
- #define IDS_LISTBOX3 42
- #define IDS_LISTBOX4 43
- #define IDS_LISTBOX5 44
- #define IDS_LISTBOX6 45
- #define IDS_LISTBOX7 46
- #define IDS_LISTBOX8 47
- #define IDS_LISTBOX9 48
- #define IDS_LISTBOX10 49
-
- #define IDS_BLUE 50
- #define IDS_RED 51
- #define IDS_PINK 52
- #define IDS_GREEN 53
- #define IDS_CYAN 54
- #define IDS_YELLOW 55
- #define IDS_DARKGRAY 56
- #define IDS_DARKBLUE 57
- #define IDS_DARKRED 58
- #define IDS_DARKPINK 59
- #define IDS_DARKGREEN 60
- #define IDS_DARKCYAN 61
- #define IDS_BROWN 62
- #define IDS_PALEGRAY 63
- #define IDS_DEFAULT 64
- #define IDS_WARNING 65
-
- #define IDS_FIRSTCOLOR IDS_BLUE
-
- /*--------------------------------------------------------------*\
- * Messagetable ids *
- \*--------------------------------------------------------------*/
- #define IDMSG_INITFAILED 1
- #define IDMSG_MAINWINCREATEFAILED 2
- #define IDMSG_CANNOTOPENINPUTFILE 3
- #define IDMSG_CANNOTOPENOUTPUTFILE 4
- #define IDMSG_CANNOTRUNCOLOR 8
- #define IDMSG_CANNOTGETHPS 9
- #define IDMSG_HELPLOADERROR 10
- #define IDMSG_CANNOTLOADSTRING 11
- #define IDMSG_CANNOTOPENPRINTER 12
- #define IDMSG_HELPDISPLAYERROR 13
- #define IDMSG_CANNOTLOADEXITLIST 14
- #define IDMSG_OVERWRITEFILE 16
- #define IDMSG_UNDOFAILED 18
- #define IDMSG_CANNOTGETFILEINFO 19
- #define IDMSG_CANNOTALLOCATEMEMORY 20
- #define IDMSG_CANNOTREADFILE 21
- #define IDMSG_CANNOTWRITETOFILE 22
- #define IDMSG_CANNOTLOADFONTS 23
- #define IDMSG_CANNOTGETPAGEINFO 24
- #define IDMSG_CANNOTSETPP 26
- #define IDMSG_FILECHANGED 27
- #define IDMSG_ISOFAILED 28
- #define IDMSG_ISONOTTESTED 29
- #define IDMSG_VIRTDDNOTLOADED 30
- #define IDMSG_UNABLETOSEND 31
-
- /*--------------------------------------------------------------*\
- * Other constants *
- \*--------------------------------------------------------------*/
- #define MESSAGELEN 100 /* maximum length for messages */
- #define TITLESEPARATORLEN 4 /* length of title bar separator string */
-
- #ifndef CCHMAXFILE
- #define CCHMAXFILE 80
- #endif
-
- #define SM_SETFOCUS (WM_USER+100) /* message to set the focus to MLE */
-
-