|
|
1.1 root 1: /*==============================================================*\
2: *
3: * Main.h - Sample PM application main header file
4: * Created 1989, 1990 Microsoft 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: * Standard Dialog box ids
17: \*--------------------------------------------------------------*/
18: #define FILEOPEN 2000
19: #define FILESAVE 2001
20:
21: #define MSGBOXID 1001
22: #define OBJECTID 1002
23:
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_HELP 9000
46: #define IDM_HELPHELPFORHELP 9100
47: #define IDM_HELPEXTENDED 9200
48: #define IDM_HELPKEYS 9300
49: #define IDM_HELPINDEX 9400
50: #define IDM_HELPTUTORIAL 9500
51: #define IDM_HELPABOUT 9600
52:
53: /*--------------------------------------------------------------*\
54: * Dialog item ids
55: \*--------------------------------------------------------------*/
56: #define ID_OK 1
57: #define ID_CANCEL 2
58:
59: /*--------------------------------------------------------------*\
60: * Stringtable ids
61: \*--------------------------------------------------------------*/
62: #define IDS_FILEOPENEXT 1
63: #define IDS_APPNAME 2
64: #define IDS_HELPLIBRARYNAME 3
65: #define IDS_OPENDLGTITLE 4
66: #define IDS_OPENDLGBUTTON 5
67: #define IDS_HELPWINDOWTITLE 6
68: #define IDS_SAVEDLGTITLE 7
69: #define IDS_SAVEDLGBUTTON 8
70: #define IDS_UNTITLED 9
71: #define IDS_TITLEBARSEPARATOR 10
72: #define IDS_PRINTSETUPTITLE 11
73: #define IDS_PAGESETUPTITLE 12
74: #define IDS_PRINTTITLE 13
75: #define IDS_OBJECTCLASS 14
76:
77: /*--------------------------------------------------------------*\
78: * Messagetable ids
79: \*--------------------------------------------------------------*/
80: #define IDMSG_INITFAILED 1
81: #define IDMSG_MAINWINCREATEFAILED 2
82: #define IDMSG_CANNOTOPENINPUTFILE 3
83: #define IDMSG_CANNOTOPENOUTPUTFILE 4
84: #define IDMSG_CANNOTRUNPAGESETUP 5
85: #define IDMSG_CANNOTRUNPRINTSETUP 6
86: #define IDMSG_CANNOTRUNPRINT 7
87: #define IDMSG_CANNOTRUNCOLOR 8
88: #define IDMSG_CANNOTGETHPS 9
89: #define IDMSG_HELPLOADERROR 10
90: #define IDMSG_CANNOTLOADSTRING 11
91: #define IDMSG_CANNOTOPENPRINTER 12
92: #define IDMSG_HELPDISPLAYERROR 13
93: #define IDMSG_CANNOTLOADEXITLIST 14
94: #define IDMSG_PRINTINITFAILED 15
95: #define IDMSG_OVERWRITEFILE 16
96: #define IDMSG_PRINTERROR 17
97: #define IDMSG_UNDOFAILED 18
98: #define IDMSG_CANNOTGETFILEINFO 19
99: #define IDMSG_CANNOTALLOCATEMEMORY 20
100: #define IDMSG_CANNOTREADFILE 21
101: #define IDMSG_CANNOTWRITETOFILE 22
102: #define IDMSG_CANNOTLOADFONTS 23
103: #define IDMSG_CANNOTGETPAGEINFO 24
104:
105: /*--------------------------------------------------------------*\
106: * Ids of messages used between threads
107: \*--------------------------------------------------------------*/
108: #define TM_THREADINITFAILED WM_USER+300
109:
110:
111: /*--------------------------------------------------------------*\
112: * Other constants
113: \*--------------------------------------------------------------*/
114: #define MESSAGELEN 50 /* maximum length for messages */
115: #define TITLESEPARATORLEN 4
116:
117: /* return values for initialization routines */
118: #define RETURN_SUCCESS 0 /* successful return in DosExit */
119: #define RETURN_ERROR 1 /* error return in DosExit */
120: #define BEEP_WARN_FREQ 60 /* frequency of warning beep */
121: #define BEEP_WARN_DUR 100 /* duration of warning beep */
122:
123:
124:
125: /* ----------------------------------------------------------------
126: * Included in the sample template is code for that creates a
127: * second thread that can be used for background processing.
128: * To use this thread, enable the BACKGROUND_THREAD constant.
129: * This will enable the routines that create and destroy the
130: * background processing thread. The routines for the thread
131: * itself are located in the thrd.c file.
132: * ----------------------------------------------------------------*/
133:
134: /*
135: #define BACKGROUND_THREAD
136: */
137:
138: #define BACKGROUND_THREAD
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.