This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Common.h
135 lines (113 loc) · 3.63 KB
/
Common.h
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
;params, wich are usualy initialized are placed at the top of the list
struct RECTWH
left dd ?
top dd ?
width dd ?
height dd ?
ends
struct OLDDEVICECONTEXT
hOldBrush dd ?
hOldPen dd ?
hOldBitmap dd ?
hOldFont dd ?
ends
struct BITMAPBUTTONINFO
bmpResourceName db _resourceNameLength dup (0)
text db _buttonTextLength dup (0)
visible dd 0
originalRect RECTWH
realRect RECTWH
hwndParent dd ?
hdc dd ?
bm BITMAP
oldDC OLDDEVICECONTEXT
ends
struct BGINFO
resourceName db _resourceNameLength dup (0)
hdc dd ?
oldDC OLDDEVICECONTEXT
bm BITMAP
ends
struct BUFFERINFO
hdc dd ?
oldDC OLDDEVICECONTEXT
rect RECTWH
ends
struct FONTINFO
height dd -54
faceName db 20 dup 0
color dd $00000000
width dd 0
escapement dd 0
orientation dd 0
weight dd FW_DONTCARE
italic dd FALSE
underline dd FALSE
strikeOut dd FALSE
charSet dd ANSI_CHARSET
outPrecision dd OUT_DEFAULT_PRECIS
clipPrecision dd CLIP_DEFAULT_PRECIS
quality dd DEFAULT_QUALITY
pitch dd DEFAULT_PITCH or FF_ROMAN
ends
struct WINDOWINFO
ClassName db _wndNameLength dup (0)
WindowName db _wndNameLength dup (0)
BG BGINFO
RealRect RECTWH
Font FONTINFO
Handle dd ?
Buffer BUFFERINFO
PS PAINTSTRUCT
ends
;BOOLEANS
TRUE = 1
FALSE = 0
; window settings
_wndWidth = 1024
_wndHeight = 768
_wndX = 0
_wndY = 0
_wndNameLength = 30
;resource settings
_resourceNameLength = 30
;common sizes
_bigButtonWidth = 330
_bigButtonHeight = 130
_squareButtonWidth = 130
_squareButtonHeight = 160
_buttonTextLength = 30
;program states
_psMainWindow = 1001
_psChooseWindow = 1002
_psPlayWindow = 1003
; messages
_wmSwitchWindows = WM_USER + 1
; animation
AW_SPEED = 500 ;in miliseconds
; string buffer
_stringBufferSize = 100
AW_CURRENTANIMATION = AW_SLIDE xor AW_VER_POSITIVE
AW_CURRENTANIMATION = AW_CENTER
AW_HOR_POSITIVE = 0x00000001
AW_HOR_NEGATIVE = 0x00000002
AW_VER_POSITIVE = 0x00000004
AW_VER_NEGATIVE = 0x00000008
AW_CENTER = 0x00000010
AW_HIDE = 0x00010000
AW_ACTIVATE = 0x00020000
AW_SLIDE = 0x00040000
AW_BLEND = 0x00080000
; Games Modes
_gmCharacter = 5001
_gmScribble = 5002
_gmCopy = 5003
_gmEnvironment = 5004
_gmMix = 5005
_gmIncremental = 5006
_gmMinIndex = _gmCharacter
_gmMaxIndex = _gmIncremental
;Colors
clrBlack = $00000000
clrWhite = $00FFFFFF
clrSome = $00baa9a5