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