ReactOS  0.4.12-dev-57-g7050ac4
definitions.h
Go to the documentation of this file.
1 /*
2  * PROJECT: PAINT for ReactOS
3  * LICENSE: LGPL
4  * FILE: base/applications/mspaint/definitions.h
5  * PURPOSE: Defines the resource ids and other stuff
6  * PROGRAMMERS: Benedikt Freisen
7  */
8 
9 #pragma once
10 
11 /* DEFINES **********************************************************/
12 
13 #define HISTORYSIZE 11
14 /* HISTORYSIZE = number of possible undo-steps + 1 */
15 
16 #define SIZEOF(a) (sizeof(a) / sizeof((a)[0]))
17 /* sizeof for string constants; equals max. number of characters */
18 
19 #define RECT_WIDTH(a) ((a).right - (a).left)
20 /* width of the rectangle defined by a RECT structure */
21 
22 #define RECT_HEIGHT(a) ((a).bottom - (a).top)
23 /* height of the rectangle defined by a RECT structure */
24 
25 #define CHECKED_IF(a) ((a) ? (MF_CHECKED | MF_BYCOMMAND) : (MF_UNCHECKED | MF_BYCOMMAND))
26 /* simplifies checking and unchecking menu items */
27 #define ENABLED_IF(a) ((a) ? (MF_ENABLED | MF_BYCOMMAND) : (MF_GRAYED | MF_BYCOMMAND))
28 /* simplifies enabling or graying menu items */
29 
30 #define IDI_APPICON 500
31 
32 #define IDB_TOOLBARICONS 510
33 
34 #define IDI_TRANSPARENT 526
35 #define IDI_NONTRANSPARENT 527
36 
37 #define IDC_FILL 530
38 #define IDC_COLOR 531
39 #define IDC_ZOOM 532
40 #define IDC_PEN 533
41 #define IDC_AIRBRUSH 534
42 
43 #define IDI_HORZSTRETCH 535
44 #define IDI_VERTSTRETCH 536
45 #define IDI_HORZSKEW 537
46 #define IDI_VERTSKEW 538
47 
48 #define ID_MENU 501
49 
50 #define IDM_FILENEW 201
51 #define IDM_FILEOPEN 202
52 #define IDM_FILESAVE 203
53 #define IDM_FILESAVEAS 204
54 
55 #define IDM_FILEFROMSCANNERORCAMERA 205
56 
57 #define IDM_FILEPAGEVIEW 206
58 #define IDM_FILEPAGESETUP 207
59 #define IDM_FILEPRINT 208
60 
61 #define IDM_FILESEND 209
62 
63 #define IDM_FILEASWALLPAPERPLANE 210
64 #define IDM_FILEASWALLPAPERCENTERED 211
65 #define IDM_FILEASWALLPAPERSTRETCHED 212
66 
67 #define IDM_FILEMOSTRECENTLYUSEDFILE 213
68 #define IDM_FILE1 214
69 #define IDM_FILE2 215
70 #define IDM_FILE3 216
71 #define IDM_FILE4 217
72 
73 #define IDM_FILEEXIT 218
74 
75 #define IDM_EDITUNDO 220
76 #define IDM_EDITREDO 221
77 #define IDM_EDITCUT 222
78 #define IDM_EDITCOPY 223
79 #define IDM_EDITPASTE 224
80 #define IDM_EDITDELETESELECTION 225
81 #define IDM_EDITINVERTSELECTION 226
82 #define IDM_EDITSELECTALL 227
83 #define IDM_EDITCOPYTO 228
84 #define IDM_EDITPASTEFROM 229
85 
86 #define IDM_VIEWTOOLBOX 230
87 #define IDM_VIEWCOLORPALETTE 231
88 #define IDM_VIEWSTATUSBAR 232
89 #define IDM_FORMATICONBAR 233
90 #define IDM_VIEWZOOM125 234
91 #define IDM_VIEWZOOM25 235
92 #define IDM_VIEWZOOM50 236
93 #define IDM_VIEWZOOM100 237
94 #define IDM_VIEWZOOM200 238
95 #define IDM_VIEWZOOM400 239
96 #define IDM_VIEWZOOM800 240
97 #define IDM_VIEWFULLSCREEN 241
98 #define IDM_VIEWSHOWGRID 242
99 #define IDM_VIEWSHOWMINIATURE 243
100 
101 #define IDM_IMAGEROTATEMIRROR 250
102 #define IDM_IMAGESTRETCHSKEW 251
103 #define IDM_IMAGECROP 252
104 #define IDM_IMAGEINVERTCOLORS 253
105 #define IDM_IMAGEATTRIBUTES 254
106 #define IDM_IMAGEDELETEIMAGE 255
107 #define IDM_IMAGEDRAWOPAQUE 256
108 
109 #define IDM_COLORSEDITPALETTE 260
110 #define IDM_COLORSMODERNPALETTE 261
111 #define IDM_COLORSOLDPALETTE 262
112 
113 #define IDM_HELPHELPTOPICS 270
114 #define IDM_HELPINFO 271
115 
116 /* the following 16 numbers need to be in order, increasing by 1 */
117 #define ID_FREESEL 600
118 #define ID_RECTSEL 601
119 #define ID_RUBBER 602
120 #define ID_FILL 603
121 #define ID_COLOR 604
122 #define ID_ZOOM 605
123 #define ID_PEN 606
124 #define ID_BRUSH 607
125 #define ID_AIRBRUSH 608
126 #define ID_TEXT 609
127 #define ID_LINE 610
128 #define ID_BEZIER 611
129 #define ID_RECT 612
130 #define ID_SHAPE 613
131 #define ID_ELLIPSE 614
132 #define ID_RRECT 615
133 
134 /* the following 16 numbers need to be in order, increasing by 1 */
135 #define TOOL_FREESEL 1
136 #define TOOL_RECTSEL 2
137 #define TOOL_RUBBER 3
138 #define TOOL_FILL 4
139 #define TOOL_COLOR 5
140 #define TOOL_ZOOM 6
141 #define TOOL_PEN 7
142 #define TOOL_BRUSH 8
143 #define TOOL_AIRBRUSH 9
144 #define TOOL_TEXT 10
145 #define TOOL_LINE 11
146 #define TOOL_BEZIER 12
147 #define TOOL_RECT 13
148 #define TOOL_SHAPE 14
149 #define TOOL_ELLIPSE 15
150 #define TOOL_RRECT 16
151 
152 #define ID_ACCELERATORS 800
153 
154 #define IDD_MIRRORROTATE 700
155 #define IDD_MIRRORROTATEGROUP 701
156 #define IDD_MIRRORROTATERB1 702
157 #define IDD_MIRRORROTATERB2 703
158 #define IDD_MIRRORROTATERB3 704
159 #define IDD_MIRRORROTATERB4 705
160 #define IDD_MIRRORROTATERB5 706
161 #define IDD_MIRRORROTATERB6 707
162 
163 #define IDD_ATTRIBUTES 710
164 #define IDD_ATTRIBUTESEDIT1 711
165 #define IDD_ATTRIBUTESEDIT2 712
166 #define IDD_ATTRIBUTESTEXT1 715
167 #define IDD_ATTRIBUTESTEXT2 716
168 #define IDD_ATTRIBUTESTEXT3 717
169 #define IDD_ATTRIBUTESTEXT4 718
170 #define IDD_ATTRIBUTESTEXT5 719
171 #define IDD_ATTRIBUTESTEXT6 720
172 #define IDD_ATTRIBUTESTEXT7 721
173 #define IDD_ATTRIBUTESTEXT8 722
174 #define IDD_ATTRIBUTESSTANDARD 723
175 #define IDD_ATTRIBUTESGROUP1 724
176 #define IDD_ATTRIBUTESGROUP2 725
177 #define IDD_ATTRIBUTESRB1 726
178 #define IDD_ATTRIBUTESRB2 727
179 #define IDD_ATTRIBUTESRB3 728
180 #define IDD_ATTRIBUTESRB4 729
181 #define IDD_ATTRIBUTESRB5 730
182 
183 #define IDD_STRETCHSKEW 740
184 #define IDD_STRETCHSKEWGROUPSTRETCH 741
185 #define IDD_STRETCHSKEWICONHSTRETCH 742
186 #define IDD_STRETCHSKEWTEXTHSTRETCH 743
187 #define IDD_STRETCHSKEWEDITHSTRETCH 744
188 #define IDD_STRETCHSKEWTEXTHPERCENT 745
189 #define IDD_STRETCHSKEWICONVSTRETCH 746
190 #define IDD_STRETCHSKEWTEXTVSTRETCH 747
191 #define IDD_STRETCHSKEWEDITVSTRETCH 748
192 #define IDD_STRETCHSKEWTEXTVPERCENT 749
193 #define IDD_STRETCHSKEWGROUPSKEW 750
194 #define IDD_STRETCHSKEWICONHSKEW 751
195 #define IDD_STRETCHSKEWTEXTHSKEW 752
196 #define IDD_STRETCHSKEWEDITHSKEW 753
197 #define IDD_STRETCHSKEWTEXTHDEG 754
198 #define IDD_STRETCHSKEWICONVSKEW 755
199 #define IDD_STRETCHSKEWTEXTVSKEW 756
200 #define IDD_STRETCHSKEWEDITVSKEW 757
201 #define IDD_STRETCHSKEWTEXTVDEG 758
202 
203 #define IDS_PROGRAMNAME 900
204 #define IDS_WINDOWTITLE 901
205 #define IDS_INFOTITLE 902
206 #define IDS_INFOTEXT 903
207 
208 #define IDS_SAVEPROMPTTEXT 904
209 #define IDS_DEFAULTFILENAME 905
210 #define IDS_MINIATURETITLE 906
211 
212 #define IDS_TOOLTIP1 910
213 #define IDS_TOOLTIP2 911
214 #define IDS_TOOLTIP3 912
215 #define IDS_TOOLTIP4 913
216 #define IDS_TOOLTIP5 914
217 #define IDS_TOOLTIP6 915
218 #define IDS_TOOLTIP7 916
219 #define IDS_TOOLTIP8 917
220 #define IDS_TOOLTIP9 918
221 #define IDS_TOOLTIP10 919
222 #define IDS_TOOLTIP11 920
223 #define IDS_TOOLTIP12 921
224 #define IDS_TOOLTIP13 922
225 #define IDS_TOOLTIP14 923
226 #define IDS_TOOLTIP15 924
227 #define IDS_TOOLTIP16 925
228 
229 #define IDS_ALLFILES 926
230 #define IDS_ALLPICTUREFILES 927
231 #define IDS_FILESIZE 928
232 #define IDS_PRINTRES 929
233 
234 #define IDS_INTNUMBERS 930
235 #define IDS_PERCENTAGE 931
236 #define IDS_ANGLE 932
237 
238 #define IDS_LOADERRORTEXT 933
239 #define IDS_ENLARGEPROMPTTEXT 934
240 
241 #define WM_TOOLSMODELTOOLCHANGED WM_APP
242 #define WM_TOOLSMODELSETTINGSCHANGED (WM_APP + 1)
243 #define WM_TOOLSMODELZOOMCHANGED (WM_APP + 2)
244 #define WM_PALETTEMODELCOLORCHANGED (WM_APP + 3)
245 #define WM_PALETTEMODELPALETTECHANGED (WM_APP + 4)
246 #define WM_IMAGEMODELDIMENSIONSCHANGED (WM_APP + 5)
247 #define WM_IMAGEMODELIMAGECHANGED (WM_APP + 6)
248 #define WM_SELECTIONMODELREFRESHNEEDED (WM_APP + 7)