blob: 10075494ba3dd03bde8a89264178454cf265b78c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
/* C module intrface */
#include "util_121.h"
#define MaxRand 32767
#define iWhitePattern 4
#define iLtGreyPattern 3
#define iGreyPattern 2
#define iDkGreyPattern 1
#define iBlackPattern 0
#define iModeNotBic 7
#define iModeNotXor 6
#define iModeNotOr 5
#define iModeNotCopy 4
#define iModeBic 3
#define iModeXor 2
#define iModeOr 1
#define iModeCopy 0
#define iStrikeOut 8
#define iUnderline 4
#define iItalic 2
#define iBold 1
#define WinEscapeKey 27
#define WinReturnKey 13
#define WinTabKey 9
#define WinBackSpKey 8
#define WinF1Key 1001
#define WinF2Key 1002
#define WinF3Key 1003
#define WinF4Key 1004
#define WinF5Key 1005
#define WinF6Key 1006
#define WinF7Key 1007
#define WinF8Key 1008
#define WinF9Key 1009
#define WinF10Key 1010
#define WinF11Key 1011
#define WinF12Key 1012
#define WinHelpKey 1013
#define WinDelKey 1014
#define WinEndKey 1015
#define WinBeginKey 1016
#define WinPgDownKey 1017
#define WinPgUpKey 1018
#define WinRightKey 1019
#define WinLeftKey 1020
#define WinDownKey 1021
#define WinUpKey 1022
#define CTRLBIT 4
#define ALTBIT 2
#define SHIFTBIT 1
#define KEYREPEAT 4
#define KEYUP 2
#define KEYDOWN 1
#define BUTTONSTILLUP 0 /* PA: new constant for mouse handling. */
#define BUTTONUP 50
#define BUTTONSTILLDOWN 40
#define BUTTONTRIPLEDOWN 3
#define BUTTONDOUBLEDOWN 2
#define BUTTONDOWN 1
#define EDITISMULTILINE 1 /* PA: flag value: edit control is multi-line. */
#define EDITISKEYSENSITIVE 2 /* PA: flag value: edit control sends keyboard events to Clean. */
/* Constants that are passed when creating (custom)button controls.
*/
#define ISNORMALBUTTON 0 /* The button is a normal button. */
#define ISOKBUTTON 1 /* The button is the OK button. */
#define ISCANCELBUTTON 2 /* The button is the CANCEL button. */
/* Game cross call codes. */
#define CcRqUSERGAMEEVENT 1905 /* send user event to other objects */
#define CcRqCREATEGAMEOBJECT 1904 /* create a new game object */
#define CcRqPLAYSOUNDSAMPLE 1903 /* initialize sound sample */
#define CcRqRUNGAME 1901 /* run the game engine */
#define CcRqCREATEGAMEWINDOW 1900 /* create a game window */
/* Print cross call codes. */
#define CcRqDO_PRINT_SETUP 1828
#define CcRqDO_HTML_HELP 1827
#define CcRqGET_PRINTER_DC 1824
#define CcRqDISPATCH_MESSAGES_WHILE_PRINTING 1823
#define CcRqENDDOC 1822
#define CcRqSTARTDOC 1821
#define CcRqCREATETCPWINDOW 1820 /* create TCP window */
#define CcRqDESTROYMDIDOCWINDOW 1817 /* destroy MDI document window */
#define CcRqCREATESDIDOCWINDOW 1816 /* create SDI document window */
#define CcRqCREATEMDIDOCWINDOW 1815 /* create MDI document window */
#define CcRqCREATEMDIFRAMEWINDOW 1814 /* create MDI frame window */
#define CcRqCREATESDIFRAMEWINDOW 1813 /* create SDI frame window */
#define CcRqCLIPBOARDHASTEXT 1812
#define CcRqGETCLIPBOARDTEXT 1811
#define CcRqSETCLIPBOARDTEXT 1810
#define CcRqGETCLIPBOARDCOUNT 1809
#define CcRqDIRECTORYDIALOG 1802 /* create directory selector dialog. */
#define CcRqFILESAVEDIALOG 1801
#define CcRqFILEOPENDIALOG 1800
#define CcRqSHOWCONTROL 1755
#define CcRqSELECTPOPUPITEM 1754
#define CcRqENABLEPOPUPITEM 1753
#define CcRqADDTOPOPUP 1752
#define CcRqSETITEMCHECK 1751
#define CcRqENABLECONTROL 1750
#define CcRqCREATECOMPOUND 1729
#define CcRqCREATESCROLLBAR 1728
#define CcRqCREATECUSTOM 1727
#define CcRqCREATEICONBUT 1726
#define CcRqCREATEPOPUP 1725
#define CcRqCREATECHECKBOX 1724
#define CcRqCREATERADIOBUT 1723
#define CcRqCREATEEDITTXT 1722
#define CcRqCREATESTATICTXT 1721
#define CcRqCREATEBUTTON 1720
#define CcRqCREATEMODALDIALOG 1701 /* create modal dialog. */
#define CcRqCREATEDIALOG 1700
#define CcRqCREATETOOLBARSEPARATOR 1603 /* create a toolbar separator item. */
#define CcRqCREATETOOLBARITEM 1602 /* create a toolbar bitmap item. */
#define CcRqCREATEMDITOOLBAR 1601 /* create a toolbar for a MDI process. */
#define CcRqCREATESDITOOLBAR 1600 /* create a toolbar. */
#define CcCbFONTSIZE 1530
#define CcCbFONTNAME 1520
#define CcRqGETFONTSIZES 1510
#define CcRqGETFONTNAMES 1500
#define CcRqSETCLIENTSIZE 1438 /* set client size. */
#define CcRqDELCONTROLTIP 1437 /* remove controls from tooltip areas. */
#define CcRqADDCONTROLTIP 1436 /* add controls to tooltip areas. */
#define CcRqGETWINDOWSIZE 1435
#define CcRqRESTACKWINDOW 1434
#define CcRqSHOWWINDOW 1433
#define CcRqSETWIDGETSIZE 1432
#define CcRqSETSELECTWINDOW 1431
#define CcRqSETWINDOWPOS 1430
#define CcRqSETEDITSELECTION 1428
#define CcRqSETSCROLLSIZE 1427
#define CcRqSETSCROLLPOS 1426
#define CcRqSETSCROLLRANGE 1425
#define CcRqOBSCURECURSOR 1422
#define CcRqCHANGEWINDOWCURSOR 1421
#define CcRqACTIVATEWINDOW 1420 /* activating window. */
#define CcRqACTIVATECONTROL 1419 /* activating controls. */
#define CcRqCREATECARET 1610
#define CcRqSETCARETPOS 1611
#define CcRqDESTROYCARET 1612
#define CcRqHIDECARET 1613
#define CcRqSHOWCARET 1614
#define CcRqGETWINDOWPOS 1416
#define CcRqGETCLIENTSIZE 1415
#define CcRqUPDATEWINDOWRECT 1412 /* updating rect part of a window/control. */
#define CcRqGETWINDOWTEXT 1411
#define CcRqSETWINDOWTITLE 1410
#define CcRqFAKEPAINT 1405 /* combination of BeginPaint; EndPaint; InvalidateRect; */
#define CcRqENDPAINT 1404
#define CcRqBEGINPAINT 1403
#define CcRqDESTROYWINDOW 1402
#define CcRqDESTROYMODALDIALOG 1401 /* destroy modal dialog. */
#define CcRqDRAWMBAR 1265
#define CcRqTRACKPOPMENU 1256 /* handling pop up menu. */
#define CcRqCREATEPOPMENU 1255
#define CcRqINSERTSEPARATOR 1245
#define CcRqMENUENABLE 1235
#define CcRqMODIFYMENU 1230
#define CcRqINSERTMENU 1226 /* inserting a menu in the menu bar. */
#define CcRqITEMENABLE 1220
#define CcRqREMOVEMENUSHORTKEY 1217 /* removing a shortkey of a menu item. */
#define CcRqADDMENUSHORTKEY 1216 /* adding a shortkey of a menu item. */
#define CcRqMODIFYMENUITEM 1215
#define CcRqDESTROYMENU 1214
#define CcRqDELETEMENU 1213 /* deleting a menu */
#define CcRqREMOVEMENUITEM 1212
#define CcRqCHECKMENUITEM 1210
#define CcRqINSERTMENUITEM 1205
#define CcRqCREATELISTBOX 1206
#define CcRqADDTOLISTBOX 1207
#define CcRqSELECTLISTBOXITEM 1208
#define CcRqMARKLISTBOXITEM 1209
#define CcRqDOMESSAGE 1100
/* Game OS to Clean codes: 500-599 */
#define CcWmCHECKQUIT 513 /* check user's quit function */
#define CcWmUSEREVENT 512 /* user defined event */
#define CcWmSTATISTICS 511 /* request for statistics */
#define CcWmOBJECTKEYUP 510 /* key released */
#define CcWmOBJECTKEYDOWN 509 /* key pressed for object */
#define CcWmOBJECTTIMER 508 /* framecounter reached 0 */
#define CcWmANIMATION 507 /* animation sequence ended */
#define CcWmCOLLISION 506 /* collision of two objects */
#define CcWmTOUCHBOUND 505 /* object touches bound */
#define CcWmOBJECTDONE 504 /* object is destroyed */
#define CcWmMOVEOBJECT 503 /* move object */
#define CcWmINITOBJECT 502 /* initialize new object */
#define CcWmSCROLL 501 /* calculate layer positions */
#define CcWmGAMEKEYBOARD 500 /* keyboard input for game */
/* TCP OS to Clean codes: */
#define CcWmINETEVENT 140
#define CcWmSPECIALBUTTON 133 /* info about OK/CANCEL button selected. */
#define CcWmPROCESSDROPFILES 132 /* requesting opening of files. */
#define CcWmGETTOOLBARTIPTEXT 131 /* getting tooltip text. */
#define CcWmSETFOCUS 130 /* notifying obtaining keyboard input focus. */
#define CcWmKILLFOCUS 129 /* notifying loss of keyboard input focus. */
#define CcWmPROCESSCLOSE 127 /* requesting closing of process. */
#define CcWmDRAWCLIPBOARD 126 /* clipboard handling. Copied from Ronny. */
#define CcWmGETSCROLLBARINFO 125 /* info about scrollbars. */
#define CcWmSCROLLBARACTION 124 /* scrollbar handling. */
#define CcWmDDEEXECUTE 123
#define CcWmIDLEDIALOG 121 /* initialising modal dialogues. */
#define CcWmDRAWCONTROL 120
#define CcWmITEMSELECT 119
#define CcWmBUTTONCLICKED 118
#define CcWmINITDIALOG 117
#define CcWmIDLETIMER 116
#define CcWmTIMER 115
#define CcWmNEWVTHUMB 114
#define CcWmNEWHTHUMB 113
#define CcWmGETVSCROLLVAL 112
#define CcWmGETHSCROLLVAL 111
#define CcWmSIZE 110 /* resize information. */
#define CcWmMOUSE 109
#define CcWmKEYBOARD 108
#define CcWmDEACTIVATE 107
#define CcWmACTIVATE 106
#define CcWmCLOSE 105
#define CcWmCOMMAND 103
#define CcWmCHAR 102
#define CcWmCREATE 101
#define CcWmPAINT 100
#define CcWmNOTIFY 78 /* notify events. */
#define CcWINMESSmax 999
#define CcWINMESSmin 100
#define CcRETURN6 16
#define CcRETURN5 15
#define CcRETURN4 14
#define CcRETURN3 13
#define CcRETURN2 12
#define CcRETURN1 11
#define CcRETURN0 10
#define CcRETURNmax 19
#define CcRETURNmin 10
#define CcWASQUIT 1
/*
* MW: new convention: messages that are passed within the OS thread
* begin with PM. They can be in range WM_USER (currently 0x0400)
* to 0x7FFF.
*/
#define PM_SOCKET_EVENT 0x0405
#define PM_DNS_EVENT 0x0406
/* Cursor types */
#define CURSHIDDEN 6
#define CURSARROW 5
#define CURSFATCROSS 4
#define CURSCROSS 3
#define CURSIBEAM 2
#define CURSBUSY 1
|